News for hackers. Stuff that matters.
Re:Undefined behavior in C is a reading error by vyodaiken on Friday May 21, 2021 @01:33PM (#27237141)
It's not designed to overflow, and automobiles are not designed to crash, but airbags are good engineering anyways
Re:Undefined behavior in C is a reading error by msbarnett on Friday May 21, 2021 @04:49PM (#27239784)
When loops that aren’t designed to overflow cheerfully wrap, they mostly just execute millions of unintended iterations reading or writing before the beginning of arrays they were indexing.

That’s not an airbag, that’s a crumple zone that rams the steering column through your sternum to avoid the engine crushing your legs. You’re still dead, we’ve just uselessly shuffled the details around.