diff options
| author | 2022-05-19 17:47:20 -0500 | |
|---|---|---|
| committer | 2022-05-19 17:52:44 -0500 | |
| commit | eab2a2312c5a9c925c463905fdeb1dc74b97f1e3 (patch) | |
| tree | 07250f60074dc6d68cf8184434becd42f5294517 /libs/androidfw/StringPool.cpp | |
| parent | 4304b4b03151a6550027bcfb1a9fb8e92b922c05 (diff) | |
Check for null buffer when calling Transaction#setBuffer
android_hardware_HardwareBuffer_getNativeHardwareBuffer will crash when
trying to convert a null object to a GraphicBuffer. Instead, just set
the GraphicBuffer to null and call into SCC with a null buffer. This
will result in the previous buffer getting released
Test: SurfaceControlTest
Fixes: 233252754
Change-Id: Idc9f5ca3d747dbc890d7cafb9512c51ca9e711c9
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions