Fail PNG size parsing if we encounter an unknown critical chunk
"Apple optimized" PNG-formatted images contain a "CgBI" chunk as the first in the file. PNGImageReader::ParseSize() did not fail on critical chunks that it didn't recognize, so we managed to thus parse out the dimensions of the image and ended dispatching 'load' for it (rather than 'error'). Bug: 994740 Change-Id: I6b9ddb4290cf43e3ca2f491aa1b500dedeb0316b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1760918Reviewed-by:Leon Scroggins <scroggo@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#688637}
Showing