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/+/2507110Reviewed-by:Stephen Chenney <schenney@chromium.org> Commit-Queue: Stephen Chenney <schenney@chromium.org> Cr-Commit-Position: refs/heads/master@{#822179}
Showing
Please register or sign in to comment