diff options
author | Michael Butler <butlermichael@google.com> | 2022-12-01 16:42:22 -0800 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-12-09 19:55:46 +0000 |
commit | 55d4d1ae85df88cc9ee66cdd95739399b01384bc (patch) | |
tree | a6bc2e60e5b70d2f492463f0f196ee10647f3c7d /camera/device/3.2/default/CameraDeviceSession.cpp | |
parent | 3a26d6dff22704a7e331af1275ea5c4466688e76 (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 082cefe34080b89e18868d8df5a97bd01f87b39c)
Merged-In: I6bfb02a5cd76258284cc4d797a4508b21e672c4b
Diffstat (limited to 'camera/device/3.2/default/CameraDeviceSession.cpp')
0 files changed, 0 insertions, 0 deletions