commit | 44ed9cf4fee7c627a2540d437faf3b46e4273a5f | [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> | Thu Dec 08 04:03:03 2022 +0000 |
tree | d59050006c67de52c5a6ff96b3532bd33330f5c5 | |
parent | cf9e63da513abcc88a39ef6fc492468ea377f2ac [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 45e8738078930b37cf63c81b29048d4fcb9166f1) Merged-In: I3461c9e33b64e7d44bb3b430c8eb00d794669037