OSDN Git Service

Ensure history has pointer id of interest.
authorSiarhei Vishniakou <svv@google.com>
Fri, 25 Aug 2017 03:36:28 +0000 (20:36 -0700)
committerSiarhei Vishniakou <svv@google.com>
Fri, 25 Aug 2017 16:44:49 +0000 (09:44 -0700)
commitc7dc3784a3302b74b895c2e8318adc62b3a0db4d
tree9d38516fcc550965eb11a0afd07fbdf0d9feadfc
parent775a54cbac2a0b6d8df7ddb0800c355020e0e50d
Ensure history has pointer id of interest.

When two events with different pointer id's end up
next to each other in touch history, then crash may
occur by trying to access the data associated with
the second to last pointer id by using the last event's
pointer id.

Test: monkey testing on sailfish
Command: adb shell monkey -p com.google.android.deskclock -p
com.android.calculator2 -p com.google.android.contacts -p
com.android.launcher -p com.google.android.launcher -p com.android.mms
-p com.google.android.apps.messaging -p com.android.phone -p
com.google.android.dialer -p com.android.providers.downloads.ui -p
com.android.settings -p com.google.android.calendar -p
com.google.android.GoogleCamera -p com.google.android.apps.photos -p
com.google.android.gms -p com.google.android.setupwizard -p
com.google.android.googlequicksearchbox -p
com.google.android.packageinstaller -p
com.google.android.apps.nexuslauncher -c
android.intent.category.LAUNCHER --ignore-security-exceptions
--monitor-native-crashes -s 611 -v -v -v 125000
Native tests will be added later.
Fixes: 65012433

Change-Id: I560a54d7f59a8892adfad3a54db9c436e4089343
include/input/InputTransport.h