ExifInterface: Remove casting int[] to long[]
This CL removes code that directly casts int[] to long[] and instead iterates through the individual values and casts to int if necessary. They are cast to integer because StripOffsets/StripByteCounts Attributes can return either int[] or long[] values, but the maximum length of a file that ExifInterface can handle is the maximum value of integer, so it should be safe to cast the long values to integer values. Bug: 73091048 Test: Cts Change-Id: I9f3b98204e0829a8a8a30927bb8c0a698c457654
Loading
Please register or sign in to comment