commit | 44e7de3a2a3c3459c7004b392dd8de217c34aab0 | [log] [tgz] |
---|---|---|
author | Vladislav Kaznacheev <kaznacheev@google.com> | Wed Dec 20 12:18:03 2017 -0800 |
committer | Vladislav Kaznacheev <kaznacheev@google.com> | Wed Dec 20 12:18:03 2017 -0800 |
tree | 346eeb1c14780a356ea31fdb97214a56564b932a | |
parent | 57365515d5d19574b37914adc321807f13d0caf5 [diff] |
Validate hotspot when loading PointerIcon from resource Currently PointerIcon.load and PointerIcon.getSystemIcon do not check if the hotspot position is within the bounds of the underlying bitmap. The check is performed only in PointerIcon.createFromParcel which is called in the system server process and the resulting exception might be hard to trace to the root cause. Bug: 70862454 Test: android.widget.cts.PointerIconTest Change-Id: I7f19cc9fc60b7bf72ad53403c203087201a5810c