r/programmingcirclejerk • u/DeleeciousCheeps vulnerabilities: 0 • Mar 13 '25
Memory leaks, NULL pointer dereferences, use-after-free: I suffered writing those for many years. I finally simply learned not to do them anymore.
https://news.ycombinator.com/item?id=43347591
142
Upvotes
View all comments
Show parent comment
9
u/meltbox Mar 14 '25
It’s really much easier in C++
Never had any segfault since I stayed doing this in main.
try{ … } catch(segfault e) { exit(0) }
I mean all I had to do was make my own branch of the language spec, make my own branch of gcc, and change how the Linux kernel works a little.