snprintf-return-value-length
snprintf-return-value-length
The return value of
Likelihood: LOW
Confidence: MEDIUM
CWE:
- CWE-787: Out-of-bounds Write
snprintf is the number of characters that would be written, excluding the NUL terminator. The return value must be validated before using it as a buffer index or buffer length.Likelihood: LOW
Confidence: MEDIUM
CWE:
- CWE-787: Out-of-bounds Write