2 ms·
C optimizers have and will optimize around UB. Feel free to call it a bug in C, the compiler, or the programmer, or the code - when you write C, when you use a
by staticassertion 10y ago
C optimizers have and will optimize around UB. Feel free to call it a bug in C, the compiler, or the programmer, or the code - when you write C, when you use a common compiler, you're asking for vulnerabilities.
Thanks for the paper. It's very interesting but I think it has no real impact on my initial statement - these optimizations aren't going away, you can continue to expect problems like this vuln in the future for the same reasons.
- mpweiher 10y agoHaving something wrong be or become reality doesn't change it being wrong.
- staticassertion 10y agoOk... so what? I don't care if you blame the compiler or the spec, and no one else should either - the end result is the same, vulnerable code.