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

Issue 1472113002: Fix a NULL pointer crash in the CJBig2_Image copy constructor. (Closed)

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

Description

Fix a NULL pointer crash in the CJBig2_Image copy constructor. Also change the copy ctor to take a const ref. BUG=560520 R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/d03bc01003ae2603dafdc07b901ffef0a509a2b9

Patch Set 1 #

Total comments: 1

Patch Set 2 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -7 lines) Patch
M core/src/fxcodec/jbig2/JBig2_Image.h View 3 chunks +5 lines, -4 lines 0 comments Download
M core/src/fxcodec/jbig2/JBig2_Image.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/src/fxcodec/jbig2/JBig2_SddProc.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
Lei Zhang
https://codereview.chromium.org/1472113002/diff/1/core/src/fxcodec/jbig2/JBig2_SddProc.cpp File core/src/fxcodec/jbig2/JBig2_SddProc.cpp (right): https://codereview.chromium.org/1472113002/diff/1/core/src/fxcodec/jbig2/JBig2_SddProc.cpp#newcode269 core/src/fxcodec/jbig2/JBig2_SddProc.cpp:269: pDict->AddImage(SDINSYMS[I] ? new CJBig2_Image(*SDINSYMS[I]) : nullptr); These are consistent ...
5 years ago (2015-11-24 18:22:37 UTC) #2
Tom Sepez
lgtm
5 years ago (2015-11-24 19:22:58 UTC) #3
Lei Zhang
5 years ago (2015-11-24 19:29:44 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
d03bc01003ae2603dafdc07b901ffef0a509a2b9 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698