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

Dangerous alloca or VLA with variable size

mediumC/C++CWE-770CVSS 6.5

What it detects

alloca with a variable size can exhaust the stack and cause overflow.

How to fix

Use heap allocation with a validated bounded size instead of alloca.

Scan your repo freeFull documentation
Back to all rules
SHIELD-CPP-012: Dangerous alloca or VLA with variable size — Zennoxa Shield