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

Issue 1441973002: Merge to M47: Fix extraction of colour components in CPDF_DIBSource::DownSampleScanline32Bit (Closed)

Created:
5 years, 1 month ago by Oliver Chang
Modified:
5 years, 1 month 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: Fix extraction of colour components in CPDF_DIBSource::DownSampleScanline32Bit Previously, if |m_bpc| was < 8 (e.g. 4), this function may still try to access the source components as if |m_bpc| == 8. Even when it fell into the codepath that tried to do the right thing in this case, it was wrong. BUG=554151 Review URL: https://codereview.chromium.org/1433423002 . (cherry picked from commit e21fe98d5b5da7da01503b985b07b90c8e811689) R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/4ec1953b4ace8248ac443effafa5f651e540d995

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : embeddertest path #

Patch Set 4 : rip out tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -30 lines) Patch
M core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp View 6 chunks +39 lines, -30 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
Oliver Chang
ptal. had some conflicts (see comments). https://codereview.chromium.org/1441973002/diff/20001/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/1441973002/diff/20001/BUILD.gn#newcode142 BUILD.gn:142: another weird change ...
5 years, 1 month ago (2015-11-13 17:24:03 UTC) #4
Lei Zhang
If you are confident in the fix, don't bother checking in the tests. We don't ...
5 years, 1 month ago (2015-11-13 21:41:20 UTC) #5
Lei Zhang
i.e. if you cut this down to just core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp, that LGTM.
5 years, 1 month ago (2015-11-13 21:42:43 UTC) #6
Lei Zhang
I also removed the "Committed:" line from the CL description. It was confusing.
5 years, 1 month ago (2015-11-13 21:44:02 UTC) #8
Oliver Chang
On 2015/11/13 21:44:02, Lei Zhang wrote: > I also removed the "Committed:" line from the ...
5 years, 1 month ago (2015-11-13 22:01:58 UTC) #9
Lei Zhang
On 2015/11/13 22:01:58, Oliver Chang wrote: > On 2015/11/13 21:44:02, Lei Zhang wrote: > > ...
5 years, 1 month ago (2015-11-13 22:06:34 UTC) #10
Oliver Chang
5 years, 1 month ago (2015-11-14 00:22:19 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
4ec1953b4ace8248ac443effafa5f651e540d995 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698