diff options
author | Michael Butler <butlermichael@google.com> | 2022-11-14 19:00:25 -0800 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-12-14 02:25:23 +0000 |
commit | 07df4f22df3bd10b147574cde7bb07f76518d95d (patch) | |
tree | 31a2b67dfa5a76cc5f365686cfdc8d90b77572c6 /audio/core/all-versions/default/Device.cpp | |
parent | ce067cc175968e9b8529ac3a8d0fd9102b1715d7 (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 9b17e6485b12e20cd73c4b0b71e5798e608a177a)
Merged-In: I6bfb02a5cd76258284cc4d797a4508b21e672c4b
Diffstat (limited to 'audio/core/all-versions/default/Device.cpp')
0 files changed, 0 insertions, 0 deletions