HNHacker News
TopNewBestAskShowJobs

liiisalong

7 karma · joined October 6, 2022

submissionscomments
liiisalong··on RFC: C++ Buffer Hardening
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.
liiisalong··on Text Is the Universal Interface
"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.

liiisalong··on RFC: C++ Buffer Hardening
Turning all UB into IB would be better so a compiler can provide --overflow=crash or --overflow=wrap.