4 ms·
> the average C programmer can't spot UBs before they cause a problem No, the average C programmer probably can spot some UBs, but I think there are many more
by DonaldPShimoda 3y ago
> the average C programmer can't spot UBs before they cause a problem
No, the average C programmer probably can spot some UBs, but I think there are many more undefined behaviors than most C programmers realize. John Regehr wrote a series of blog posts about some of the trickier UBs, starting here: https://blog.regehr.org/archives/213 https://blog.regehr.org/archives/213
- DonaldPShimoda 3y agoLooking at my own comment a day later and I think I had misread the parent comment as suggesting that "the average C programmer can spot UBs", which I felt the need to dispute. I dunno how I made that mistake even after copy/pasting, but I did, so I apologize for that.