Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 382 Bytes

memsetValueOutOfRange.md

File metadata and controls

11 lines (6 loc) · 382 Bytes

Pattern: memset() value out of range

Issue: -

Description

The 2nd memset() argument doesn’t fit into an unsigned char. The 2nd parameter is passed as an int, but the function fills the block of memory using the unsigned char conversion of this value.

Further Reading