commit | b9f8ac9693daf113fd6f6e1aa92f021d10859f39 | [log] [tgz] |
---|---|---|
author | Michael Butler <butlermichael@google.com> | Thu Dec 01 16:42:22 2022 -0800 |
committer | android-t2 <xiaocong.gu@t2mobile.com> | Wed Feb 15 10:16:24 2023 +0800 |
tree | 8429b77acc4da91066dd3e1c4d82b23cc4d3621d | |
parent | 27677975b77a74459c882520c1299cf5f5927b85 [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 (cherry picked from commit 4668f30dcfdf418e7fcbc0d9c98b2eabbddb5099) Merged-In: I6bfb02a5cd76258284cc4d797a4508b21e672c4b