diff options
| author | 2022-08-16 16:57:38 +0800 | |
|---|---|---|
| committer | 2022-08-16 16:57:38 +0800 | |
| commit | fc8f9637c8f1b9fbe92a75231741c3ad12d03279 (patch) | |
| tree | a9e4398e8a95a8ced9181a9add46f4aaeb75c121 /libs/androidfw/AssetsProvider.cpp | |
| parent | 81ae41092e605441e7d586a40d1463c42df0e2ad (diff) | |
Always copy sources to outInsetsState before writeToParcel
InsetsState#writeToParcel is executed outside of mGlobalLock, so there
could be two threads accessing the same object at the same time. This CL
copies sources to outInsetsState to prevent the race condition.
Fix: 235019713
Fix: 242037615
Test: presubmit
Change-Id: I78d9b89f88f75ab673761bbfce86330ff0163adc
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions