Fix out-of-bounds array access in NNAPI shim converter

Add explicit bounds checks for operation inputs/outputs and subgraph
input/output indexes in isValid() of ShimConverter.cpp to prevent OOB
access and improve error logging.

Bug: 269456968
Test: alint
Flag: EXEMPT BUGFIX
DISABLE_TOPIC_PROTECTOR
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:b6fa7d7c01b682ca744a23762ce846427ad1135b
Merged-In: I09c16a02f2b97ce223285871dd38c04ed3327690
Change-Id: I09c16a02f2b97ce223285871dd38c04ed3327690
1 file changed