News for hackers. Stuff that matters.
Re:About size_t and ptrdiff_t by mikeash on Tuesday August 18, 2015 @02:13PM (#10081030)
Pointer subtraction is only valid for pointers within the same object. To overflow a signed ptrdiff_t, you'd need to allocate an array of char with more than 2^31 elements. This can be done on some systems, but it's really rare.

There are no comments on this comment yet.