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

Issue 1473143003: Merge to M47: Change |CCodec_ScanlineDecoder::m_Pitch| to FX_DWORD (Closed)

Created:
5 years ago by Oliver Chang
Modified:
5 years ago
Reviewers:
Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@2526
Target Ref:
refs/heads/chromium/2526
Visibility:
Public.

Description

Merge to M47: 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=thestig@chromium.org BUG=555784 Original Review URL: https://codereview.chromium.org/1460033002 . (cherry picked from commit e7950df70a2fd658f466751b29483436cb31e829) Committed: https://pdfium.googlesource.com/pdfium/+/e668838baf79ff8bc0e13931feea5cd1877706eb

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -22 lines) Patch
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 5 chunks +17 lines, -6 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

Messages

Total messages: 3 (0 generated)
Oliver Chang
TBR. no real conflicts apart from tests (which were not included).
5 years ago (2015-11-24 20:23:08 UTC) #1
Oliver Chang
Committed patchset #1 (id:1) manually as e668838baf79ff8bc0e13931feea5cd1877706eb (presubmit successful).
5 years ago (2015-11-24 20:24:27 UTC) #2
Lei Zhang
5 years ago (2015-11-24 20:26:33 UTC) #3
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698