Prevent out of bounds indices accessing arrays
Prevent out of bounds indices accessing arrays

Change-Id: Ic20b7314fc3a61738f2089d393f672d801037dda

GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom