commit | 63a496ee6ad51e1de41cbf698d766fa5a04e88a8 | [log] [tgz] |
---|---|---|
author | Michael Butler <butlermichael@google.com> | Thu Dec 01 17:50:37 2022 -0800 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Dec 09 21:27:22 2022 +0000 |
tree | 839e0ba261af90cb6b03414bec6b8fffc7a2f75e | |
parent | 749a0b48da6f05ebb72edbd87b4f486f7d14a2cf [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: I3461c9e33b64e7d44bb3b430c8eb00d794669037 Change-Id: I3461c9e33b64e7d44bb3b430c8eb00d794669037 (cherry picked from commit 9525bc4a6a63acf97513288dbdf8c48b5382c8d8) Merged-In: I3461c9e33b64e7d44bb3b430c8eb00d794669037