commit | 12e7aa58826edbf88b99d67e3bd4c6feaddc45b7 | [log] [tgz] |
---|---|---|
author | Jin Seok Park <jinpark@google.com> | Fri Mar 30 18:07:30 2018 +0900 |
committer | Jin Seok Park <jinpark@google.com> | Fri Apr 20 10:36:00 2018 +0900 |
tree | f4a53c701e780052a475adad85a91b5aa7049e52 | |
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