All rules →
Rules / C/C++
SHIELD-CPP-006

Non-constant format string

highC/C++CWE-134CVSS 8.6

What it detects

printf-family called with a variable format string enables format string attacks.

How to fix

Always pass a constant format string such as printf("%s", var).

Scan your repo freeFull documentation
Back to all rules
SHIELD-CPP-006: Non-constant format string — Zennoxa Shield