Versions Compared

Key

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

Wiki Markup
The incorrect use of arrays has traditionally been a source of exploitable vulnerabilities. Elements referenced within an array using the subscript operator {{\[\]}} are not checked unless the programmer provides adequate bounds checking. As a result, the expression {{array \[pos\] = value}} can be used by an attacker to transfer control to arbitrary code.

...

These statements allocate storage for an array of 12 integers referenced by dis array. Arrays are indexed from 0..n-1 (where n represents an array bound). Arrays can also be declared as follows:

...