commit | cb61d0c9be80bf834653496195caa8264a9e30ec | [log] [tgz] |
---|---|---|
author | Wolloh Chou <wollohchou@google.com> | Tue Mar 20 15:28:00 2018 +0800 |
committer | Wolloh Chou <wollohchou@google.com> | Tue Mar 20 15:38:45 2018 +0800 |
tree | 7bb8199a0ef0dd55497c48cf1ed570b3d998e43e | |
parent | eec88d343a1105d4da5c108c49258e2ccc131f4a [diff] |
Fix heap use after free. Asan shows the memory op used was freed by mOperationMap.removeOperation(token), so change the order of mAuthTokenTable.MarkCompleted(op.handle) and mOperationMap.removeOperation(token). Bug: 74572753 Test: runtest --path cts/tests/tests/keystore/src/android/keystore/cts/KeyStoreTest.java Change-Id: I9f5452fc639a1f694c37759ee860f73f57d0fdcf