diff options
author | Michael Butler <butlermichael@google.com> | 2022-11-14 19:00:25 -0800 |
---|---|---|
committer | Michael Butler <butlermichael@google.com> | 2022-12-05 20:24:16 +0000 |
commit | 67d9ebe9e6f0b661978b86f561f36865abeb0c37 (patch) | |
tree | f95822fc32e7aa4101328e58f9ae3c2078b2a85d /contexthub/aidl/default/ContextHub.cpp | |
parent | 08e0d7dfb073085e16b19862e9bee37833fe7d81 (diff) |
Add additional bounds checks to NNAPI FMQ deserialize utility functions
This CL adds the following additional bounds checks:
* Adds additional checks of the index of the std::vector before
accessing the element at the index
* Changes the array index operator [] to the checked std::vector::at
method
Bug: 256589724
Test: mma
Merged-In: I6bfb02a5cd76258284cc4d797a4508b21e672c4b
Change-Id: I6bfb02a5cd76258284cc4d797a4508b21e672c4b
Diffstat (limited to 'contexthub/aidl/default/ContextHub.cpp')
0 files changed, 0 insertions, 0 deletions