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

Issue 1461363002: Merge to XFA: Change |CCodec_ScanlineDecoder::m_Pitch| to FX_DWORD (Closed)

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

Description

Merge to XFA: Change |CCodec_ScanlineDecoder::m_Pitch| to FX_DWORD This matches the type of the corresponding |CFX_DIBSource::m_Pitch|, where integer overflow is checked for FX_DWORD. This change is propagated to many other places. Also, check for integer overflow in |CCodec_RLScanlineDecoder::Create| during the calculation of |m_Pitch| since it aligns to 4 bytes while overflow was was previously checked without this alignment. TBR=tsepez@chromium.org BUG=555784 Review URL: https://codereview.chromium.org/1460033002 . (cherry picked from commit e7950df70a2fd658f466751b29483436cb31e829) Committed: https://pdfium.googlesource.com/pdfium/+/0afbad0509578a5fee6fec4394d6b3c55425cf28

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -24 lines) Patch
M core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp View 1 chunk +10 lines, -0 lines 0 comments Download
M core/src/fxcodec/codec/codec_int.h View 3 chunks +3 lines, -3 lines 0 comments Download
M core/src/fxcodec/codec/fx_codec.cpp View 4 chunks +18 lines, -8 lines 0 comments Download
M core/src/fxcodec/codec/fx_codec_fax.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M core/src/fxcodec/codec/fx_codec_flate.cpp View 8 chunks +17 lines, -9 lines 0 comments Download
M core/src/fxcodec/codec/fx_codec_jpeg.cpp View 2 chunks +4 lines, -2 lines 0 comments Download
A testing/resources/bug_555784.in View 1 chunk +74 lines, -0 lines 0 comments Download
A testing/resources/bug_555784.pdf View 1 chunk +88 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Oliver Chang
clean merge. TBR
5 years, 1 month ago (2015-11-20 18:01:40 UTC) #1
Oliver Chang
5 years, 1 month ago (2015-11-20 18:01:51 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
0afbad0509578a5fee6fec4394d6b3c55425cf28 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698