diff options
author | Michael Butler <butlermichael@google.com> | 2020-11-22 19:36:30 -0800 |
---|---|---|
committer | Michael Butler <butlermichael@google.com> | 2020-12-07 22:37:28 -0800 |
commit | 6547b2ac9c963d92fa80e822963240fe07a7da9f (patch) | |
tree | 7bb08cfd7161fb5eb5a86b6c56c062acb8387dd2 /identity/support/src/cppbor_parse.cpp | |
parent | a173639924a79e8b04497199f4c021ec0b70ce40 (diff) |
Validate during NN conversions by default -- hal
This change renames all `convert` functions to `unvalidatedConvert`.
This change also introduces new `convert` functions that act only on the
types that appear in the NN HIDL methods directly. These new `convert`
functions perform validation. Specifically, if either the source or
destination value is invalid, then the conversion fails.
Bug: 160667419
Test: mma
Test: NeuralNetworksTest_static
Change-Id: I492956ff60ad1466c67893993d28cdd6f3860708
Merged-In: I492956ff60ad1466c67893993d28cdd6f3860708
(cherry picked from commit 32acc0614402a35eed3407116ec359f4fdb60ecc)
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions