Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 475 Bytes

pointerOutOfBounds.md

File metadata and controls

13 lines (7 loc) · 475 Bytes

Pattern: Pointer out of bounds

Issue: -

Description

Pointer arithmetic is out of bounds. From chapter 6.5.6 in the C specification:

If both the pointer operand and the result point to elements of the same array object, or one past the last element of the array object, the evaluation shall not produce an overflow; otherwise, the behavior is undefined.

Further Reading