Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: xref ptrobj from TS 17961

...

CERT C++ Secure Coding StandardARR36-CPP. Do not subtract or compare two pointers or iterators that do not refer to the same array or container
ISO/IEC TS 17961

Subtracting or comparing two pointers that do not refer to the same array [ptrobj]

MITRE CWECWE-469, Use of pointer subtraction to determine size

...