Skip to content
Commit dbf72805 authored by Tobias Stöckmann's avatar Tobias Stöckmann 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.
Please register or to comment