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

Commit bdf4ac78 authored by pumahsu's avatar pumahsu Committed by Ricky Niu
Browse files

Prevent null vector accessing in USB HAL



If getPortStatusHelper() failed to allocate currentPortStatus_1_2 size,
it should not access this vector, otherwise it would cause crash.

Bug: 142366879
Bug: 174635444
Test: try to adb root and re-connect USB
Change-Id: I0d0d9cd1dccd646ce270b562f2922da15338bfc1
Signed-off-by: default avatarpumahsu <pumahsu@google.com>
Signed-off-by: default avatarRicky Niu <rickyniu@google.com>
parent 3c6d16b8
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