Monday, September 03, 2018

Re: cc: dereference NULL pointer inside switch brackets and no exception

> No ?

"Contrary to popular belief, dereferencing a null pointer in C is
undefined. It is not defined to trap, and if you mmap a page at 0,
it is not defined to access that page."

http://blog.llvm.org/2011/05/what-every-c-programmer-should-know.html

No comments:

Post a Comment