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

Issue 1514093002: Fix memory leaks involving InsertIndirectObject() (Closed)

Created:
5 years ago by jun_fang
Modified:
4 years, 10 months ago
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : #

Total comments: 11

Patch Set 3 : #

Total comments: 7

Patch Set 4 : #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -18 lines) Patch
M core/include/fpdfapi/fpdf_objects.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp View 1 2 3 4 1 chunk +13 lines, -12 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
jun_fang
Hi Tom and Lei, Please help to review it. Thanks! https://codereview.chromium.org/1514093002/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp (right): https://codereview.chromium.org/1514093002/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp#newcode1167 ...
5 years ago (2015-12-10 16:02:40 UTC) #2
Tom Sepez
Just a few nit to fix. Thanks. https://codereview.chromium.org/1514093002/diff/20001/core/include/fpdfapi/fpdf_objects.h File core/include/fpdfapi/fpdf_objects.h (right): https://codereview.chromium.org/1514093002/diff/20001/core/include/fpdfapi/fpdf_objects.h#newcode612 core/include/fpdfapi/fpdf_objects.h:612: FX_BOOL InsertIndirectObject(FX_DWORD ...
5 years ago (2015-12-10 17:32:13 UTC) #3
Lei Zhang
Isn't there one more InsertIndirectObject() caller in core/src/fpdfapi/fpdf_parser/fpdf_parser_fdf.cpp that need to check the return value?
5 years ago (2015-12-10 18:53:57 UTC) #4
Lei Zhang
https://codereview.chromium.org/1514093002/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp (right): https://codereview.chromium.org/1514093002/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp#newcode1167 core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp:1167: if (pObj->GetGenNum() <= pValue->GetGenNum()) { On 2015/12/10 17:32:13, Tom ...
5 years ago (2015-12-10 18:57:05 UTC) #5
Tom Sepez
On 2015/12/10 18:57:05, Lei Zhang wrote: > https://codereview.chromium.org/1514093002/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp > File core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp (right): > > https://codereview.chromium.org/1514093002/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp#newcode1167 ...
5 years ago (2015-12-10 20:28:00 UTC) #6
jun_fang
On 2015/12/10 20:28:00, Tom Sepez wrote: > On 2015/12/10 18:57:05, Lei Zhang wrote: > > ...
5 years ago (2015-12-10 23:24:18 UTC) #7
jun_fang
https://codereview.chromium.org/1514093002/diff/20001/core/include/fpdfapi/fpdf_objects.h File core/include/fpdfapi/fpdf_objects.h (right): https://codereview.chromium.org/1514093002/diff/20001/core/include/fpdfapi/fpdf_objects.h#newcode612 core/include/fpdfapi/fpdf_objects.h:612: FX_BOOL InsertIndirectObject(FX_DWORD objnum, CPDF_Object* pObj); On 2015/12/10 17:32:12, Tom ...
5 years ago (2015-12-10 23:24:26 UTC) #8
jun_fang
https://codereview.chromium.org/1514093002/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp (right): https://codereview.chromium.org/1514093002/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp#newcode1167 core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp:1167: if (pObj->GetGenNum() <= pValue->GetGenNum()) { On 2015/12/10 17:32:13, Tom ...
5 years ago (2015-12-10 23:55:58 UTC) #9
jun_fang
On 2015/12/10 23:55:58, jun_fang wrote: > https://codereview.chromium.org/1514093002/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp > File core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp (right): > > https://codereview.chromium.org/1514093002/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp#newcode1167 > ...
5 years ago (2015-12-11 00:07:35 UTC) #10
Tom Sepez
https://codereview.chromium.org/1514093002/diff/40001/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp (right): https://codereview.chromium.org/1514093002/diff/40001/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp#newcode1163 core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp:1163: void* pExistingObj = nullptr; I'd have kept value here, ...
5 years ago (2015-12-11 00:15:07 UTC) #11
jun_fang
https://codereview.chromium.org/1514093002/diff/40001/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp (right): https://codereview.chromium.org/1514093002/diff/40001/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp#newcode1163 core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp:1163: void* pExistingObj = nullptr; On 2015/12/11 00:15:07, Tom Sepez ...
5 years ago (2015-12-11 02:07:16 UTC) #12
Tom Sepez
lgtm
5 years ago (2015-12-11 19:00:45 UTC) #13
jun_fang
5 years ago (2015-12-12 05:48:04 UTC) #15
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
4ea4459ecaf66043f0a8b29f60439a0056ff6036 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698