Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JPEG decoder: Reading offsets from EXIF was off by two bytes.
For rational numbers this worked OK by chance when both the nominator and the denominator were < 65536, because the error was cancelled by the division. However, this doesn't work when the nominator/denominator are larger than 65535. Fixed the offset, and added a test with large nom/denom. Bug: 1143645 Change-Id: Ic8e46c580437fb4585197807c89a48f43435852a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2507110 Reviewed-by: Stephen Chenney <[email protected]> Commit-Queue: Stephen Chenney <[email protected]> Cr-Commit-Position: refs/heads/master@{#822179}
- Loading branch information