PointerSub -- Use of Pointer Subtraction to Determine Size

From RAD Studio
Jump to: navigation, search

Go Up to C++ Audits


PointerSub checks for subtractions of one pointer from another to determine the size of an element.

The application subtracts one pointer from another in order to determine size, but this calculation can be incorrect if the pointers do not belong to the same memory chunk.

See Also