Skip to content
Commit dbf72805 authored by Tobias Stoeckmann's avatar Tobias Stoeckmann Committed by Matthieu Herrb
Browse files

Fixed out of boundary write (CVE-2018-14600).



The length value is interpreted as signed char on many systems
(depending on default signedness of char), which can lead to an out of
boundary write up to 128 bytes in front of the allocated storage, but
limited to NUL byte(s).

Casting the length value to unsigned char fixes the problem and allows
string values with up to 255 characters.

Signed-off-by: default avatarTobias Stoeckmann <tobias@stoeckmann.org>
parent b469da14
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment