diff options
author | Jin Seok Park <jinpark@google.com> | 2018-03-30 18:07:30 +0900 |
---|---|---|
committer | Jin Seok Park <jinpark@google.com> | 2018-04-20 10:36:00 +0900 |
commit | 12e7aa58826edbf88b99d67e3bd4c6feaddc45b7 (patch) | |
tree | f4a53c701e780052a475adad85a91b5aa7049e52 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 7f0afb4958142cc85513c6e6c4812f192b58bffd (diff) |
ExifInterface: Prevent infinite loop
A corrupted image file may create two problems.
1. A corrupted IFD pointer may point to an IFD that has already
been read, thus creating an infinite loop and a stack overflow.
2. A corrupted IFD offset value may have a negative value, thus
prompting a random reading of the file and creating an infinite
loop.
This CL addresses these issues.
Bug: 63800695
Test: Run cts (ExifInterfaceTest)
Change-Id: I706a0c3eae6af8301af69407333ea88e5681df3c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions