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

memcpy with unchecked length

highC/C++CWE-120CVSS 8.1

What it detects

memcpy or memmove with a variable length from input can overflow the destination buffer.

How to fix

Validate the length against the destination capacity before copying.

Scan your repo freeFull documentation
Back to all rules
SHIELD-CPP-019: memcpy with unchecked length — Zennoxa Shield