Versions Compared

Key

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

...

In this non-compliant code example, the contents of }} the {{const int array vals are cleared by the call to memset().

...

Risk Assessment

If the object really is constant, the compiler may have put it allocate storage in ROM or write-protected memory. Trying to modify such an object may lead to a program crash. This could allow an attacker to mount a denial-of-service attack.

...