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

Issue 1998583002: Fix leak in CPDF_StreamContentParser::AddTextObject(). (Closed)

Created:
4 years, 7 months ago by Lei Zhang
Modified:
4 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
Project:
pdfium
Visibility:
Public.

Description

Fix leak in CPDF_StreamContentParser::AddTextObject(). ... by using STL containers in more places. Remove dead / duplicate code as well. BUG=603904 Committed: https://pdfium.googlesource.com/pdfium/+/80f25a5a8135933a405349ffc798d13273b3d690

Patch Set 1 : Clean up CPDF_ClipPath first #

Patch Set 2 : More vectors #

Patch Set 3 : More vectors, fix leak #

Total comments: 11

Patch Set 4 : Fix a nit, and remove duplicate code in CFX_CountRef, rebase. #

Patch Set 5 : pair #

Patch Set 6 : CollectionSize #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -193 lines) Patch
M core/fpdfapi/fpdf_page/cpdf_clippath.cpp View 1 2 3 4 5 2 chunks +41 lines, -63 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_clippathdata.h View 1 2 3 4 1 chunk +7 lines, -7 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_clippathdata.cpp View 1 2 3 4 1 chunk +7 lines, -60 lines 0 comments Download
M core/fpdfapi/fpdf_page/fpdf_page_parser.cpp View 1 2 3 chunks +11 lines, -14 lines 0 comments Download
M core/fpdfapi/fpdf_page/include/cpdf_clippath.h View 1 2 3 4 5 1 chunk +7 lines, -10 lines 0 comments Download
M core/fpdfapi/fpdf_page/pageint.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_text.cpp View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M core/fxcrt/include/fx_basic.h View 1 2 3 1 chunk +4 lines, -35 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
Lei Zhang
https://codereview.chromium.org/1998583002/diff/40001/core/fpdfapi/fpdf_page/cpdf_clippath.cpp File core/fpdfapi/fpdf_page/cpdf_clippath.cpp (left): https://codereview.chromium.org/1998583002/diff/40001/core/fpdfapi/fpdf_page/cpdf_clippath.cpp#oldcode83 core/fpdfapi/fpdf_page/cpdf_clippath.cpp:83: void CPDF_ClipPath::DeletePath(int index) { Dead code. https://codereview.chromium.org/1998583002/diff/40001/core/fpdfapi/fpdf_page/cpdf_clippathdata.cpp File core/fpdfapi/fpdf_page/cpdf_clippathdata.cpp ...
4 years, 7 months ago (2016-05-19 17:28:47 UTC) #2
Tom Sepez
https://codereview.chromium.org/1998583002/diff/40001/core/fpdfapi/fpdf_page/cpdf_clippath.cpp File core/fpdfapi/fpdf_page/cpdf_clippath.cpp (right): https://codereview.chromium.org/1998583002/diff/40001/core/fpdfapi/fpdf_page/cpdf_clippath.cpp#newcode63 core/fpdfapi/fpdf_page/cpdf_clippath.cpp:63: pData->m_PathList.back().SetNull(); Doesn't the dtor invoked by pop_back on the ...
4 years, 7 months ago (2016-05-19 18:32:03 UTC) #3
Lei Zhang
https://codereview.chromium.org/1998583002/diff/40001/core/fpdfapi/fpdf_page/cpdf_clippath.cpp File core/fpdfapi/fpdf_page/cpdf_clippath.cpp (right): https://codereview.chromium.org/1998583002/diff/40001/core/fpdfapi/fpdf_page/cpdf_clippath.cpp#newcode63 core/fpdfapi/fpdf_page/cpdf_clippath.cpp:63: pData->m_PathList.back().SetNull(); On 2016/05/19 18:32:03, Tom Sepez wrote: > Doesn't ...
4 years, 7 months ago (2016-05-19 20:44:26 UTC) #4
Tom Sepez
lgtm
4 years, 7 months ago (2016-05-19 21:28:03 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1998583002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1998583002/100001
4 years, 7 months ago (2016-05-19 21:35:40 UTC) #8
commit-bot: I haz the power
4 years, 7 months ago (2016-05-19 21:36:04 UTC) #10
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://pdfium.googlesource.com/pdfium/+/80f25a5a8135933a405349ffc798d13273b3...

Powered by Google App Engine
This is Rietveld 408576698