Re:My favourite C++ footgun
by a_t48 on Wednesday June 23, 2021 @12:20PM
(#27606266)
A bit of a nit - your storage driver could absolutely emit a program that formats your disk due to undefined behavior.
[ Parent
| on HN ]
If you already have a problem that contains instructions that are manipulating your disk in these sorts of ways then this is within some reason. But the usual hyper-concern about UB is that it'll take a program that otherwise does completely different things (imagine some CLI utility that just reads from stdin) and instead produce some maximally adversarial program that ruins your life. This ins't a real concern.