...
Code Block | ||||
---|---|---|---|---|
| ||||
#include <stddef.h> enum { TABLESIZE = 100 }; static int table[TABLESIZE]; int *f(size_t index) { if (index < TABLESIZE) { return table + index; } return NULL; } |
Anchor | ||||
---|---|---|---|---|
|
Noncompliant Code Example (Dereferencing Past-the-End Pointer)
...