News for hackers. Stuff that matters.
Re:A Guide to Undefined Behavior in C and C++ by Gibbon1 on Thursday August 17, 2023 @04:01PM (#37167157)
What's amazing is programmers haven't tared and feathered the standards committee and compiler writers for allowing crap like that.
Re:A Guide to Undefined Behavior in C and C++ by saagarjha on Friday August 18, 2023 @12:03AM (#37171280)
They've tried. Language lawyers are very good at their jobs, though.
Re:A Guide to Undefined Behavior in C and C++ by Gibbon1 on Friday August 18, 2023 @06:43AM (#37173809)
I think at this point unfortunately regulators needs to start getting involved.
Re:A Guide to Undefined Behavior in C and C++ by uecker on Friday August 18, 2023 @07:09AM (#37174063)
Well, the argument brought up is that users want it this way, so this is existing practice which is implemented and should be standardized. So please complain and file bugs.

Also use the compiler and language feature that help, such as variably-modified types such as bare pointers, attributes, compiler flags, etc.