diff options
author | Shunta Sato <shunta.sato@sonymobile.com> | 2016-11-04 18:57:39 +0900 |
---|---|---|
committer | Robert Carr <racarr@google.com> | 2017-03-28 13:36:36 -0700 |
commit | ec2952bc4a15b9aa1bfc7e1b0c572aeb719b9a6c (patch) | |
tree | aa73f11f96b3862b8e738f46b5ea6e51cdab1b88 /tools/aapt2/diff/Diff.cpp | |
parent | 78f5c26fa6687a03858b7eec8c991950a4837af6 (diff) |
Don't allow the negative height of ListPopupWindow
Symptom:
If an application set a negative height to the popup list,
surfaceflinger is crashed with SIGABRT.
Root cause:
WindowManagerService dose not expect negative
height of ListPopupWindow. If it's negative,
WindowManagerService set the negative value to GraphicBufferAlloc,
but GraphicBufferAlloc handle the value as unsigned int,
then surfaceflinger is crashed with SIGABRT.
Solution:
Setting a negative height is a developer error.
We should throw an IAE from setHeigh(int).
Bug: 33441454
Author: Kazuki Nakayama <kazuki.x.nakayama@sonymobile.com>
Change-Id: I5887674d302e567abfe66147de4819cfdf0ef97b
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions