top | item 45883724

(no title)

Measter | 3 months ago

Only if that memory page is unmapped, and only if the optimizer doesn't detect that it's a null pointer and start deleting verification code because derefing null is UB, and UB is assumed to never happen.

discuss

order

charlie90|3 months ago

How common is this in practice?

adrianN|3 months ago

Compilers regularly delete null pointer checks when they can see that the pointer is dereferenced.