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

/GS in Visual C++ enables buffer security checks (stack canaries), and GCC's -fmudflap options provide runtime buffer overflow protection. Option A correctly identifies both. Options B, C, D list optimization or unrelated flags that do not protect against buffer overflows.