Chapter 6. Arrays (ARR)

Chapter Contents


Risk Assessment Summary


Image ARR30-C. Do not form or use out-of-bounds pointers or array subscripts

The C Standard identifies four distinct situations in which undefined behavior can arise as a result of invalid pointer operations:

Image Addition or subtraction of a pointer into, or just beyond, an array object and ...

Get The CERT ® C Coding Standard: 98 Rules for Developing Safe, Reliable, and Secure Systems, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.