Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Issue 11361023: Merge 132961 (merge bug: http://crbug.com/158840) - Fix potential overflow in jpeg exif reader. Fou… (Closed)

Created:
8 years, 1 month ago by Nico
Modified:
8 years, 1 month ago
Reviewers:
Nico
CC:
chromium-reviews
Base URL:
http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Visibility:
Public.

Description

Merge 132961 (merge bug: http://crbug.com/158840) - Fix potential overflow in jpeg exif reader. Found by aedla@google.com. https://bugs.webkit.org/show_bug.cgi?id=100320 Reviewed by Eric Seidel. Adding more than 1 element past an array is undefined, so don't do it. No test, since in practice ifd will just overflow and `end - ifd` will become much larget than 2 and the `if (end - ifd < 2)` a few lines down will catch that case. * platform/image-decoders/jpeg/JPEGImageDecoder.cpp: (WebCore::readImageOrientation): TBR=thakis@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=133086

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1642 lines, -1 line) Patch
M Source/WebCore/ChangeLog View 1 chunk +1638 lines, -0 lines 0 comments Download
M Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 1 (0 generated)
Nico
8 years, 1 month ago (2012-10-31 22:26:19 UTC) #1

          

Powered by Google App Engine
This is Rietveld 408576698