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

Integer overflow in malloc size

mediumC/C++CWE-190CVSS 6.5

What it detects

malloc with a multiplied size can overflow and allocate too little memory.

How to fix

Use calloc or check for multiplication overflow before allocating.

Scan your repo freeFull documentation
Back to all rules
SHIELD-CPP-011: Integer overflow in malloc size — Zennoxa Shield