diff options
| author | 2022-06-14 14:55:57 +0000 | |
|---|---|---|
| committer | 2022-06-14 16:27:24 +0000 | |
| commit | 33da9468354b9b530712d4157298a8e0479cf2e5 (patch) | |
| tree | 4ac2655af45af516376ec539e291ab6b521b7546 /vulkan/libvulkan/api.cpp | |
| parent | 8f4e41d679d67436ee3868cab8785a35b3cc613f (diff) | |
Layer: Guard against Region offset overflows
When applying a transform to a Region, if the Region is translated to
bounds that overlow the int32_t type, the process crashes.
For now, we guard against process crashes by manually applying the
offset to the Region and checking for overflows. If we detect an
overflow in one of the Rects in a Region, we remove the Rect from the
resulting Region.
Bug: 234247210
Test: atest libgui_test
Change-Id: Icd47539accae2e59a7dbd9c9621201bd040fc402
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions