×
Pointer arithmetic is appropriate only when the pointer argument refers to an array (see ARR37-C. Do not add or subtract an integer to a pointer to a ...
CERT_C-ARR37-a, ARR37-C. Do not add or subtract an integer to a pointer to a non-array object. CERT_C-ARR38-a, ARR38-C. Guarantee that library functions do not ...
ARR30-C. Do not form or use out-of-bounds pointers or array subscripts. ARRAY_VS_SINGLETON, ARR37-C. Do not add or subtract an integer to a pointer to a non ...
CERT C: Rule ARR37-C · ARR37-C. Do not add or subtract an integer to a pointer to a non-array object · CERT C: Rule ARR38-C · ARR38-C. Guarantee that library ...
ARR36-C. Do not subtract or compare two pointers that do not refer to the same array. Page: ARR37-C. Do not add or subtract an integer to a pointer to a non ...
ARR30-C, High, Likely, High. P9. L2. ARR32-C, High, Probable, High. P6. L2. ARR36-C, Medium, Probable, Medium. P8. L2. ARR37-C, Medium, Probable, Medium. P8. L2.
... ARR37, and we should also mention that EXP03-C. Do not assume the size of a structure is the sum of the sizes of its members is a special case of this rec.