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

Unbounded sprintf buffer overflow

highC/C++CWE-120CVSS 8.1

What it detects

sprintf writes formatted output without a size limit and can overflow the buffer.

How to fix

Use snprintf or vsnprintf with an explicit buffer size.

Scan your repo freeFull documentation
Back to all rules
SHIELD-CPP-003: Unbounded sprintf buffer overflow — Zennoxa Shield