commit | d2ecde5c54b32165d22641dcb3f96b2c0cc3cc4c | [log] [tgz] |
---|---|---|
author | Xusong Wang <xusongw@google.com> | Mon Aug 23 11:36:19 2021 -0700 |
committer | Xusong Wang <xusongw@google.com> | Mon Aug 23 11:41:46 2021 -0700 |
tree | 94004acf53d46c1c59c84282d6b402117568a4a9 | |
parent | 7f23524b2cfb4db574a13fd5d02bd2b32019c4dc [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