diff options
| author | 2023-06-26 18:01:47 +0000 | |
|---|---|---|
| committer | 2023-07-06 14:37:06 +0000 | |
| commit | 24a7874bb4093a1a6721a2002569512c43af5bdc (patch) | |
| tree | 00c3a1337277ac1adcf25f17d9254c73f967ef00 /libs/gui/LayerDebugInfo.cpp | |
| parent | 08e184f88bdb6f5b926c27eb2d6e1ec99216b5d5 (diff) | |
Fix for heap-use-after-free in GPUService.cpp
This adds a unit test and fix for the bug reported by libfuzzer.
Changes made:
* Expose GPUService as testable code.
* Update main_gpuservice.cpp to use the new GpuService now located at
gpuservice/GpuService.h
* Make initializer threads members of GpuService
* Join the threads in destructor to prevent heap-use-after-free.
* Add unit test that waits 3 seconds after deallocation to ensure no
wrong access is made.
Merged-In: I4d1d2d4658b575bf2c8f425f91f68f03114ad029
Bug: 282919145
Test: Added unit test and ran on device with ASAN
Change-Id: I4d1d2d4658b575bf2c8f425f91f68f03114ad029
(cherry picked from commit 3c00cbc0f119c3f59325aa6d5061529feb58462b)
Diffstat (limited to 'libs/gui/LayerDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions