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

Issue 1144603002: Fix leaks in embedder test's FlateEncode() usage and in FlateEncode(). (Closed)

Created:
5 years, 7 months ago by Lei Zhang
Modified:
5 years, 7 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 leaks in embedder test's FlateEncode() usage and in FlateEncode(). For FlateEncode(), error handling code leaked memory. R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/1962d61b28df03284e3e5c6de6a19f397a066e68

Patch Set 1 #

Total comments: 9

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -81 lines) Patch
M core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp View 2 chunks +6 lines, -2 lines 0 comments Download
M core/src/fxcodec/codec/fx_codec_flate.cpp View 1 3 chunks +73 lines, -79 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Lei Zhang
https://codereview.chromium.org/1144603002/diff/1/core/src/fxcodec/codec/fx_codec_flate.cpp File core/src/fxcodec/codec/fx_codec_flate.cpp (right): https://codereview.chromium.org/1144603002/diff/1/core/src/fxcodec/codec/fx_codec_flate.cpp#newcode766 core/src/fxcodec/codec/fx_codec_flate.cpp:766: if (useOldImpl) { I took the original code and ...
5 years, 7 months ago (2015-05-15 06:46:46 UTC) #2
Tom Sepez
we might want to ping Nico about how far off is a std::unique_ptr to replace ...
5 years, 7 months ago (2015-05-15 15:23:39 UTC) #3
Lei Zhang
https://codereview.chromium.org/1144603002/diff/1/core/src/fxcodec/codec/fx_codec_flate.cpp File core/src/fxcodec/codec/fx_codec_flate.cpp (right): https://codereview.chromium.org/1144603002/diff/1/core/src/fxcodec/codec/fx_codec_flate.cpp#newcode759 core/src/fxcodec/codec/fx_codec_flate.cpp:759: if (!guess_buf) On 2015/05/15 15:23:38, Tom Sepez wrote: > ...
5 years, 7 months ago (2015-05-15 22:29:49 UTC) #4
Tom Sepez
lgtm
5 years, 7 months ago (2015-05-15 22:34:32 UTC) #5
Lei Zhang
5 years, 7 months ago (2015-05-15 23:09:16 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
1962d61b28df03284e3e5c6de6a19f397a066e68 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698