...
In this non-compliant code example, a VLA of size s
is declared. The size s
is declared as size_t
in compliance with INT01-AC. Use rsize_t or size_t for all integer values representing the size of an object.
Code Block | ||
---|---|---|
| ||
void func(size_t s) { int vla[s]; /* ... */ } /* ... */ func(size); /* ... */ |
...