Skip to content
Commit 4658ed56 authored by Daniel DeGrasse's avatar Daniel DeGrasse Committed by Mahesh Mahadevan
Browse files

drivers: input: input_gt911: fix OOB buffer write to touch points array



GT911 driver was reading an additional touch point into the stack
defined touch point array, causing an out-of-bounds write on the stack.
Fix this issue by adjusting the limit on the for loop, and add a note
to the driver as to why we don't need to validate the number of points
reported for future developers

Signed-off-by: default avatarDaniel DeGrasse <daniel.degrasse@nxp.com>
parent 8562ae61
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment