diff options
author | Chong Zhang <chz@google.com> | 2018-07-26 15:54:18 -0700 |
---|---|---|
committer | Chong Zhang <chz@google.com> | 2018-07-26 17:01:28 -0700 |
commit | c139d469103554583d9a4ccfb07ad9e8e3a1c43f (patch) | |
tree | f3f8e92605cba4378599304a8762eeb0b7423e65 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 490bab809556a942002a72dacb096cc67c4a1a8f (diff) |
Fix data source for HEIF exif extractor
Do not allow the source to read past available bytes, since
the underlying input stream may not be able to seek after that.
For input streams from files, the available bytes is usually the
file size, and we usually don't have problem when the file is
of decent size. But when the file is very small, some of the
extractors (other than mp4) would request bytes past the end
of the file, which goes over the available range. Once that
condition is hit, we can't reset to the offet needed for
mp4 extractor and heif parsing would fail.
bug: 111897855
test: open heic files of various sizes in Files (Downloads) app,
check that ExifInterface shouldn't encounter any exceptions.
Change-Id: I668ff900f4155dc310cb7ea8977bbe091791c5d7
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions