Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1473ba27 authored by Ashish Garg's avatar Ashish Garg Committed by raghavendra ambadas
Browse files

msm: mdss: check the length of the external input buffer properly



dchdr->dlen is a short variable controlled by the user-provided data
(a string). If the value is negative, the condition does not pass
and loop continues, also increasing the value of "len". As a result
buffer overflow and overwrite occurs.

Change-Id: I5eacec446c9a8b5b82fc3bc6d1281303f336d4de
Signed-off-by: default avatarAshish Garg <ashigarg@codeaurora.org>
parent 1517368c
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