Access of Memory Location After End of Buffer |
Weakness ID: 788 (Weakness Base) | Status: Incomplete |
Description Summary
The software reads or writes to a buffer using an index or pointer that references a memory location after the end of the buffer.
Extended Description
This typically occurs when a pointer or its index is decremented to a position before the buffer, when pointer arithmetic results in a position before the beginning of the valid memory location, or when a negative index is used. These problems may be resultant from missing sentinel values (CWE-463) or trusting a user-influenced input length variable.
Nature | Type | ID | Name | View(s) this relationship pertains to![]() |
---|---|---|---|---|
ChildOf | ![]() | 119 | Failure to Constrain Operations within the Bounds of a Memory Buffer | Development Concepts (primary)699 Research Concepts (primary)1000 |
ParentOf | ![]() | 121 | Stack-based Buffer Overflow | Development Concepts (primary)699 Research Concepts (primary)1000 |
ParentOf | ![]() | 122 | Heap-based Buffer Overflow | Development Concepts (primary)699 Research Concepts (primary)1000 |
ParentOf | ![]() | 126 | Buffer Over-read | Development Concepts (primary)699 Research Concepts (primary)1000 |