3 ms·
They can be security issues since the compiler is allowed to optimize stuff. The compiler can check, that some checks the user added "don't make sense" since th
by johannes1234321 8y ago
They can be security issues since the compiler is allowed to optimize stuff. The compiler can check, that some checks the user added "don't make sense" since those only would be hit if something undefined happens. An example is shown in https://www.tripwire.com/state-of-security/vulnerability-management/compiler-undermining-secure-coding/ https://www.tripwire.com/state-of-security/vulnerability-man... but there are many more.
- kazinator 8y agoNo, they can be security issues in that the program expected x + 1 to be a value bigger than x, but it is suddenly a big negative value. The fact that this behavior is now blessed by ISO C makes no difference to it being wrong, and causing some security issue in the program.