commit | 6b9c50a617c19f02f56b9bf9aa971e9c9cfbc16a | [log] [tgz] |
---|---|---|
author | Michael Butler <butlermichael@google.com> | Thu Dec 01 17:50:37 2022 -0800 |
committer | android-t1 <android-t1@t2mobile.com> | Sat May 06 15:32:29 2023 +0800 |
tree | 839e0ba261af90cb6b03414bec6b8fffc7a2f75e | |
parent | 8fa6acc8ad7eb390554b12374334d369005d2e56 [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