diff options
| author | 2024-02-14 15:46:40 -0500 | |
|---|---|---|
| committer | 2024-02-14 15:46:40 -0500 | |
| commit | f28348424874db0f75aa82cd7c8b305268c3326d (patch) | |
| tree | 75e7be1803d21d7934fcb7fbef802bea801cf29c /libs/androidfw/ZipFileRO.cpp | |
| parent | a9d2c1f17c2c128231df3d0aa771b55f697d3f61 (diff) | |
Limit the maxLines of the clipboard TextView to a minimum of 1
The TextView can crash if the maxLines is set to a negative value;
this shouldn't happen in general but is possible in edge cases/if
the view is measured at an unexpected time, due to how we're calculating
the max lines.
Bug: 317445600
Fix: 317445600
Test: tested no apparent behavior change; crash is not directly
reproducible but ensuring the maxLines is never less than 1 should
prevent the crash going forward.
Flag: NONE
Change-Id: I4da647b21d481e0baca9db991b4b6d39be56ffcb
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions