Chapter 6. Arrays (ARR)
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:
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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.