liiisalong
Re:RFC: C++ Buffer Hardening
on Thursday October 06, 2022 @06:02AM (#33106438)
The difference is that implementation defined behavior must be documented and consistent, you get rid of code magically disappearing (null checks after null pointer deref for example) and becoming security problems when you update your compiler.
Re:Text Is the Universal Interface
on Thursday October 06, 2022 @03:09AM (#33105354)
"Text Is the Universal Interface"
I've never understood this 'truth'.
How is "Temperature: 45C" somehow easier to parse/process than 0x01 0x00 0x00 0x00 0x4D
You still always have to consider the exact structure of the text (<Field> <colon> <space> <value> <unit>) same as any binary format.
Re:RFC: C++ Buffer Hardening
on Thursday October 06, 2022 @02:47AM (#33105195)
Turning all UB into IB would be better so a compiler can provide --overflow=crash or --overflow=wrap.