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

Issue 1394933002: Fix a malloc/delete mismatch introduced in commit 8a9ce57. (Closed)

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

Description

Fix a malloc/delete mismatch introduced in commit 8a9ce57. Just get rid of the malloc altogether and use CJBig2_List instead. BUG=540873 R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/06f255ca4040f3d73cf09f1dbd63a3b167f6a4c1

Patch Set 1 #

Total comments: 2

Patch Set 2 : combine nearly identical code #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -31 lines) Patch
M core/src/fxcodec/jbig2/JBig2_GsidProc.cpp View 1 2 chunks +17 lines, -31 lines 0 comments Download
M core/src/fxcodec/jbig2/JBig2_List.h View 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Lei Zhang
5 years, 2 months ago (2015-10-08 19:28:57 UTC) #2
Tom Sepez
lgtm https://codereview.chromium.org/1394933002/diff/1/core/src/fxcodec/jbig2/JBig2_GsidProc.cpp File core/src/fxcodec/jbig2/JBig2_GsidProc.cpp (right): https://codereview.chromium.org/1394933002/diff/1/core/src/fxcodec/jbig2/JBig2_GsidProc.cpp#newcode43 core/src/fxcodec/jbig2/JBig2_GsidProc.cpp:43: CJBig2_Image* pImage = nullptr; nit: maybe fold this ...
5 years, 2 months ago (2015-10-08 19:57:34 UTC) #3
Tom Sepez
On 2015/10/08 19:57:34, Tom Sepez wrote: > lgtm > > https://codereview.chromium.org/1394933002/diff/1/core/src/fxcodec/jbig2/JBig2_GsidProc.cpp > File core/src/fxcodec/jbig2/JBig2_GsidProc.cpp (right): ...
5 years, 2 months ago (2015-10-08 19:58:02 UTC) #4
Lei Zhang
https://codereview.chromium.org/1394933002/diff/1/core/src/fxcodec/jbig2/JBig2_GsidProc.cpp File core/src/fxcodec/jbig2/JBig2_GsidProc.cpp (right): https://codereview.chromium.org/1394933002/diff/1/core/src/fxcodec/jbig2/JBig2_GsidProc.cpp#newcode43 core/src/fxcodec/jbig2/JBig2_GsidProc.cpp:43: CJBig2_Image* pImage = nullptr; On 2015/10/08 19:57:34, Tom Sepez ...
5 years, 2 months ago (2015-10-08 22:14:19 UTC) #5
Lei Zhang
5 years, 2 months ago (2015-10-08 22:27:32 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
06f255ca4040f3d73cf09f1dbd63a3b167f6a4c1 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698