diff options
| author | 2022-06-10 19:15:20 +0000 | |
|---|---|---|
| committer | 2022-07-14 19:36:40 +0000 | |
| commit | 97c65c141da1f98f31b40d274a24676c997115dc (patch) | |
| tree | 1ef96cc9c32b0acbf2637b587fc9b0937c09783f /libs/gui/BLASTBufferQueue.cpp | |
| parent | e2727a888168568b5e747fbb613be137292c463e (diff) | |
Guard against overflow errors for transparent regions
Applications may send arbitrary transparent regions to SurfaceFlinger
by overriding ViewGroup#gatherTransparentRegion, or a savvy binary may
apply a custom transparent region directly on a transaction. Arbitrary
transparent regions may cause SurfaceFlinger to crash on malformed
input.
We can guard against some of these crashes by constraining the
transparent region to be within the layer bounds
Bug: 230227800
Test: Stress tests
Test: libcompositionengine_test
Change-Id: I38f6f42dce38cdf2f34ba41af658adfdad290417
(cherry picked from commit e60f0b9057c99cdbb5ca55e85c8f1ef5479d38a6)
Merged-In: I38f6f42dce38cdf2f34ba41af658adfdad290417
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions