summaryrefslogtreecommitdiff
path: root/libs/ultrahdr/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author sergiuferentz <sergiuferentz@google.com> 2023-06-26 18:01:47 +0000
committer Sergiu Ferentz <sergiuferentz@google.com> 2023-06-28 11:20:19 +0000
commit3c00cbc0f119c3f59325aa6d5061529feb58462b (patch)
tree12194c4bb73b2cca8c3b3eb8773ecd5c20369373 /libs/ultrahdr/jpegencoderhelper.cpp
parent3d3673802eea4973df3bd856a72e9c5152857db8 (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. Bug: 282919145 Test: Added unit test and ran on device with ASAN Change-Id: I4d1d2d4658b575bf2c8f425f91f68f03114ad029
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions