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:0be2d9a3abdc89d33e14b1fac965ce53b52b3f5a
Merged-In: I09c16a02f2b97ce223285871dd38c04ed3327690
Change-Id: I09c16a02f2b97ce223285871dd38c04ed3327690
1 file changed