diff options
author | 2025-02-27 16:40:36 +0800 | |
---|---|---|
committer | 2025-02-27 00:45:32 -0800 | |
commit | e39304db55949cd6ae8094bde15d7d18d60ec0c8 (patch) | |
tree | 1f288f5d1b1137185bdd9da3d84af8173f2d6d9e /cmds/bootanimation/BootAnimation.cpp | |
parent | 42401c8b2bd2138d239251826ba5e7427afb13e7 (diff) |
Fix array index out of bounds exception problem.
The getPrimaryPointerId method may return the INVALID_POINTER_ID(-1) value and result to array index out of bounds exception.The crash log:
java.lang.ArrayIndexOutOfBoundsException: length=32; index=-1
at com.android.server.accessibility.gestures.TouchState$ReceivedPointerTracker.getReceivedPointerDownX(TouchState.java:482)
at com.android.server.accessibility.gestures.TouchExplorer.handleActionMoveStateTouchExploring(TouchExplorer.java:910)
.....
Test: monkey test
Flag: EXEMPT bugfix
Bug: 399557645
Change-Id: Ib0b14471953d8f78cf98122dd868be8b80059a75
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions