Hacker News new | ask | show | jobs
by homosapien97 54 days ago
Use -fwrapv
1 comments

Or -ftrapv depending on usage, both converting UB to IB. Generally letting a number overflowing and wrapping around is opening the door to let in the bad things creeping in the shadow.