🎴 Flashcard Mode

C/C++ Security Vulnerabilities

Card1 / 20
Mastered0
Review0
QuestionClick to flip

Which Compilation switch will you use to check Buffer Overflows?

AnswerClick to flip back
A
/GS on Visual C++ and -fmudflap -fmudflapth -fmudflapir on GCC
💡 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.

Change Mode