Multiple choice technology security

Which Compilation switch will you use to check Buffer Overflows?

  1. /GS on Visual C++ and -fmudflap -fmudflapth -fmudflapir on GCC

  2. /O in Vc++ and -O2 in GCC

  3. /S in Vc++ and -fcrossjumping in GCC

  4. /S in VC++ and -fno-function-cse in GCC

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The /GS flag in Visual C++ enables buffer overflow detection by adding security checks to compiled code. The GCC mudflap options (-fmudflap, -fmudflapth, -fmudflapir) provide similar runtime buffer overflow instrumentation. These compilation switches insert guard code to detect stack corruption and buffer overruns during program execution. Options B, C, and D refer to optimization and code generation settings unrelated to security checking.