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

Issue 1305033006: Guard against null image data in CJBig2_GRRDProc. (Closed)

Created:
5 years, 3 months ago by Lei Zhang
Modified:
5 years, 3 months ago
Reviewers:
Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium@b514891_clean_aaa_cobject_rm2
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Guard against null image data in CJBig2_GRRDProc. Credit to karl at skomski.com for the initial version of the CL. BUG=527174 R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/89d8b4681ce98894a1ee1a6cf4bae77e00d28797

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : add test case #

Patch Set 4 : belt and suspenders, no goto #

Total comments: 1

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -36 lines) Patch
M core/src/fxcodec/jbig2/JBig2_Context.cpp View 1 2 3 5 chunks +29 lines, -36 lines 0 comments Download
M core/src/fxcodec/jbig2/JBig2_GeneralDecoder.cpp View 2 chunks +6 lines, -0 lines 0 comments Download
A testing/resources/pixel/bug_527174.in View 1 2 Binary file 0 comments Download
A testing/resources/pixel/bug_527174_expected.pdf.0.png View 1 2 Binary file 0 comments Download

Messages

Total messages: 10 (1 generated)
Lei Zhang
Slightly different way of achieving the same thing as Karl's suggestion. In most other places, ...
5 years, 3 months ago (2015-09-04 23:49:39 UTC) #2
Tom Sepez
Add test case as an embeddertest or such?
5 years, 3 months ago (2015-09-08 16:00:39 UTC) #3
Lei Zhang
On 2015/09/08 16:00:39, Tom Sepez wrote: > Add test case as an embeddertest or such? ...
5 years, 3 months ago (2015-09-09 03:37:26 UTC) #4
skomski
On 2015/09/09 03:37:26, Lei Zhang wrote: > On 2015/09/08 16:00:39, Tom Sepez wrote: > > ...
5 years, 3 months ago (2015-09-09 09:29:13 UTC) #5
Tom Sepez
On 2015/09/09 03:37:26, Lei Zhang wrote: > On 2015/09/08 16:00:39, Tom Sepez wrote: > > ...
5 years, 3 months ago (2015-09-09 17:52:43 UTC) #6
Lei Zhang
On 2015/09/09 09:29:13, skomski wrote: > On 2015/09/09 03:37:26, Lei Zhang wrote: > > On ...
5 years, 3 months ago (2015-09-09 23:14:01 UTC) #7
Lei Zhang
Onwards to patch set 4. https://codereview.chromium.org/1305033006/diff/60001/core/src/fxcodec/jbig2/JBig2_Context.cpp File core/src/fxcodec/jbig2/JBig2_Context.cpp (right): https://codereview.chromium.org/1305033006/diff/60001/core/src/fxcodec/jbig2/JBig2_Context.cpp#newcode472 core/src/fxcodec/jbig2/JBig2_Context.cpp:472: m_ProcessiveStatus = FXCODEC_STATUS_ERROR; This ...
5 years, 3 months ago (2015-09-09 23:41:07 UTC) #8
Tom Sepez
LGTM, but reitveld wouldn't show the test files. I'll assume they're OK.
5 years, 3 months ago (2015-09-10 22:31:58 UTC) #9
Lei Zhang
5 years, 3 months ago (2015-09-10 23:13:35 UTC) #10
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
89d8b4681ce98894a1ee1a6cf4bae77e00d28797 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698