summaryrefslogtreecommitdiff
path: root/identity/support/src/cppbor_parse.cpp
diff options
context:
space:
mode:
authorXusong Wang <xusongw@google.com>2021-08-23 11:36:19 -0700
committerXusong Wang <xusongw@google.com>2021-08-27 11:51:24 -0700
commitdee204e13f52c96e481612a7faa97f7051ebc681 (patch)
treecc94540accdbf3bc39a83c108600908b2fc13cba /identity/support/src/cppbor_parse.cpp
parent8472d91b5790932c253b5be33baf4e5198aba6ef (diff)
Fix use-after-free crash in VtsHalNeuralnetworksTargetTest.
Prior to this CL, the AHardwareBuffer in TestBlobAHWB is released in the destructor, but later used (unlock) during the destruction of the mMapping member. This CL fixed this issue by managing the lifetime of AHardwareBuffer with SharedMemory. Bug: 197199690 Test: VtsHalNeuralnetworksTargetTest Change-Id: I00748aaaa1a3a3d9b3b62bedb77a655ddb6e210f Merged-In: I00748aaaa1a3a3d9b3b62bedb77a655ddb6e210f (cherry picked from commit d2ecde5c54b32165d22641dcb3f96b2c0cc3cc4c)
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions