summaryrefslogtreecommitdiff
path: root/identity/support/src/cppbor_parse.cpp
diff options
context:
space:
mode:
authorXusong Wang <xusongw@google.com>2019-04-26 15:33:38 -0700
committerXusong Wang <xusongw@google.com>2019-04-29 11:47:54 -0700
commitf8c5987bbd8f747a6ecc0c349128eb7d4d57e11d (patch)
tree0e41a2bb982238a6e477f366e93c363a3a87c0c7 /identity/support/src/cppbor_parse.cpp
parent83ab17f224a908db1cd3947a11d39b6ffcf4b694 (diff)
Move getSupportedOperations out of saveToCache.
Before this change, getSupportedOperations_1_2 was invoked in saveModelToCache prior to prepareModel_1_2, which delayed the model preparation and cache overwriting always ran faster in SaveToCache_TOCTOU test. This change increases the chance that the model is overwritten after it is saved in SaveToCache_TOCTOU test by moving getSupportedOperations_1_2 out of saveToCache. Bug: 123433989 Test: VtsHalNeuralnetworksV1_xTargetTest with 1.2 sample driver Test: VtsHalNeuralnetworksV1_xTargetTest with a test driver that can read and write cache entries Test: TOCTOU tests with a sample driver that is deliberately broken Change-Id: Ieba6a82252623ac429d5fcb6950b99db949f9886
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions