Out-of-bounds pointers: a common pattern and how to avoid it http://trust-in-soft.com/out-of-bounds-pointers-a-common-pattern-and-how-to-avoid-it/ …
-
-
@BRIAN_____ Having been reminded recently that (void*)0 < (void*)0 and (void*) < p are both UB, I have accepted uintptr_t as my savior. -
@spun_off Why would one do that, though? Basically can't do anything w/ NULL pointer except (== NULL) and (!= NULL), right? Everyone knows.
-
@BRIAN_____ Generic code, and a loop where a pointr is null at the first iteration and a real pointer afterwards, are two real life examples -
@BRIAN_____ https://twitter.com/RichFelker/status/712249855306047489 … is the one I called “generic code”. The other is in QuickLZ.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.