C/C++ compiler optimizations can assume that code does not have undefined behaviors. This causes security flaws when code checks for undefined behaviors, such as integer overflows and buffer overruns, are optimized out by the compiler. Add compiler flags which restrict the compiler from making arbitrary decisions while handling undefined behaviors.
C/C++ compiler optimizations can assume that code does not have undefined behaviors. This causes security flaws when code checks for undefined behaviors, such as integer overflows and buffer overruns, are optimized out by the compiler. Add compiler flags which restrict the compiler from making arbitrary decisions while handling undefined behaviors.