ipc: Hwbinders: Add checks to avoid OOB read.
event_config_payload vector is read using event_config_payload_size
variable whose value comes from binder client.
If event_config_payload_size is set with a value larger than
event_config_payload size then it might lead to Out-of-Bound read.
Added checks to ensure that the event_config_payload_size matches
with the event_config_payload size.
Change-Id: Ic956ec0a1bbdcf280b4fb478d1502a47f82b4b3d
(cherry picked from commit 9bafcce0189fadabc62502695d7ea72b7fc6749a)
1 file changed