logoalt Hacker News

aka-rideryesterday at 11:10 PM1 replyview on HN

I would be afraid to do this with C++.

My friend once sent me a snippet, maybe 10 lines of C+++, asking "can you spot the UB?".

So I'm staring at these 10 lines, I KNOW there is an UB. I wasn't able to find it without a hint.


Replies

tstennertoday at 2:19 AM

Was it the one with the elided null check?