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

Issue 1425983002: XFA: remove unsafe exif parsing code (Closed)

Created:
5 years, 1 month ago by Tom Sepez
Modified:
5 years, 1 month ago
Reviewers:
Lei Zhang, dsinclair
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@xfa
Target Ref:
refs/heads/xfa
Visibility:
Public.

Description

XFA: remove unsafe exif parsing code Fortunately, this could only be called with a null buffer, so none of unchecked lengths could be used. The remaining use of the CFX_/IFX_DIBAttributeEx class is as a table, so put one directly in the CFX_DIBAttribute. Fix a "register" warning along the way. R=dsinclair@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/83488a802d3e6f02faad6accbc17aa5da5795e63

Patch Set 1 #

Total comments: 1

Patch Set 2 : Null check. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -430 lines) Patch
M core/include/fxcodec/fx_codec.h View 2 chunks +3 lines, -15 lines 0 comments Download
M core/src/fxcodec/codec/codec_int.h View 1 chunk +0 lines, -32 lines 0 comments Download
M core/src/fxcodec/codec/fx_codec.cpp View 1 chunk +14 lines, -338 lines 0 comments Download
M core/src/fxcodec/codec/fx_codec_tiff.cpp View 1 3 chunks +36 lines, -45 lines 0 comments Download

Messages

Total messages: 9 (5 generated)
Tom Sepez
Lei, Dan, for review.
5 years, 1 month ago (2015-10-28 22:00:33 UTC) #4
Tom Sepez
https://codereview.chromium.org/1425983002/diff/1/core/src/fxcodec/codec/fx_codec_tiff.cpp File core/src/fxcodec/codec/fx_codec_tiff.cpp (right): https://codereview.chromium.org/1425983002/diff/1/core/src/fxcodec/codec/fx_codec_tiff.cpp#newcode273 core/src/fxcodec/codec/fx_codec_tiff.cpp:273: void Tiff_Exif_GetStringInfo(TIFF* tif_ctx, note: follow-up - make this a ...
5 years, 1 month ago (2015-10-28 22:10:51 UTC) #7
dsinclair
lgtm
5 years, 1 month ago (2015-10-29 02:10:02 UTC) #8
Tom Sepez
5 years, 1 month ago (2015-10-29 16:51:09 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
83488a802d3e6f02faad6accbc17aa5da5795e63 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698