summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author chiachangwang <chiachangwang@google.com> 2022-08-16 08:13:00 +0000
committer chiachangwang <chiachangwang@google.com> 2022-08-18 03:14:22 +0000
commit5a0ea79c41350e0764d6ab546e60a84de2b66509 (patch)
tree38b11c7cf3de542beb3627e3b2f4e38fa992df7f /libs/androidfw/StringPool.cpp
parent1cf151d917805471db6b36cb4e51fe6aef5d32ee (diff)
Skip events on stale Ikev2VpnRunner
The exit() of of VpnRunner will do exitVpnRunner() and cleanupVpnStateLocked(). But the exitVpnRunner() posts a runnable to the executor. This means that disconnectVpnRunner() might run concurrently with cleanupVpnStateLocked(), and it might even complete after cleanupVpnStateLocked() finishes. After exiting the runner, the states are reset. The remaining events in the executor are irrelavent and should be skipped to prevent accessing any of the outer class's members. Also add missing synchronized block by verify that there is no other field of the outer Vpn class that is used inside Ikev2VpnRunner implicitly. Bug: 235322391 Test: atest FrameworksNetTests Change-Id: I9eed58b2e96ebaf33e557a42e83525a74a4697d8
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions