[automerger skipped] Add additional bounds checks to NNAPI FMQ deserialize utility functions am: 67d9ebe9e6 am: 9243f062ce -s ours

am skip reason: Merged-In I6bfb02a5cd76258284cc4d797a4508b21e672c4b with SHA-1 9b17e6485b is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/20605249

Change-Id: Ia49a7ec551c58a551f004a9aff0ccf9756c1a9f1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>