diff options
author | 2024-11-06 09:39:56 +0000 | |
---|---|---|
committer | 2024-11-07 13:50:08 +0000 | |
commit | 3086bbd64c0b8ca90c891f9cb73e057b7c7dc45b (patch) | |
tree | d8cd05dcb302fd0400bb5e053c22a98109521661 /tools/cpp-define-generator | |
parent | cc22b57fd30005bdb03495412408a56c7ba08fb6 (diff) |
Fix use-after-free in dex2oat mini-debug-info compression.
This might happen if the device runs out of disk space,
which causes the WriteOutputFiles to return early and
dex2oat starts to shutdown and free memory before exit.
However, the mini-debug-info compression thread still
keeps running, so there is short window of time where
it might access freed memory before dex2oat exits.
This CL uses RAII to ensure that the compression task
finishes before return from the frame that started it.
Bug: 375314886
Test: test.py --host
Change-Id: I69b679551477de5e3df9c0867daefd8e22c52833
Diffstat (limited to 'tools/cpp-define-generator')
0 files changed, 0 insertions, 0 deletions