Fix OOB Read in convertSubgraphFromHAL

Bug: 269271098
Test: Run the POC
(cherry picked from https://android-review.googlesource.com/q/commit:029b72665f6c7c262255ad7475d4be9fc58d9db0)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:22a20c01cc01dbb36ecbc68e664a070c4ffad2cf)
Merged-In: I7a5f3780fafd12663693b74988baee6a9188041f
Change-Id: I7a5f3780fafd12663693b74988baee6a9188041f
(cherry picked from commit 9fc00b621cd07799f01aeeaf958c76b4a48ae0f8)
1 file changed