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

Non-constant format string with stream target

highC/C++CWE-134CVSS 8.6

What it detects

fprintf or sprintf using a variable as the format argument enables format string attacks.

How to fix

Pass an explicit constant format string instead of a variable.

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