Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
bgColor#FFCCCC
void func(size_t s) {
  int vla[s];
  /* ... */
}
/* ... */
func(size);
/* ... */

...