Re:Cap'n'Proto remote vuln: pointer overflow check optimized...
by jononor on Friday April 21, 2017 @07:47AM
(#14164650)
I don't support this unsafe compiler behavior. There should be a check on the pointer in sight, or a manual declaration that "this is safe, trust me".
Otherwise, emit a UB warning...
[ Parent
| on HN ]
Re:Cap'n'Proto remote vuln: pointer overflow check optimized...
by adrianN on Friday April 21, 2017 @09:20AM
(#14165283)
Then you want to use a different language. Java for example throws NullPointerException instead of having UB for null pointer accesses.