detecting invalid pointers

Karl Heuer karl at haddock.ima.isc.com
Wed Mar 15 10:20:04 AEST 1989


In article <3011 at nunki.usc.edu> jeenglis at nunki.usc.edu (Joe English) writes:
>karl at haddock.ima.isc.com (Karl Heuer) writes:
>>This works because pointer *equality* is well-defined even on pointers into
>>different arrays.
>
>Well, maybe not... [80x86 in large model with unnormalized pointers]

If the compiler ever generates unnormalized pointers, then it had better be
prepared to generate code to compare them correctly.

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list