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

Issue 2364673002: Null CPDF_CountedObj::m_pObj prior to deletion (Closed)

Created:
4 years, 3 months ago by Tom Sepez
Modified:
4 years, 3 months ago
Reviewers:
Lei Zhang, dsinclair
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Null CPDF_CountedObj::m_pObj prior to deletion This gives additional protection in case of re-entry. Also make CFX_CountRef more robust in face of errors. BUG=649229 Committed: https://pdfium.googlesource.com/pdfium/+/fef62e1f2bbf064100e6e262a10653f2374bfd2b

Patch Set 1 #

Total comments: 2

Patch Set 2 : Copy comment from strings header, fix old comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -3 lines) Patch
M core/fpdfapi/fpdf_page/cpdf_countedobject.h View 1 chunk +3 lines, -1 line 0 comments Download
M core/fxcrt/cfx_string_data_template.h View 1 1 chunk +1 line, -1 line 0 comments Download
M core/fxcrt/include/cfx_count_ref.h View 1 1 chunk +8 lines, -1 line 0 comments Download

Messages

Total messages: 16 (8 generated)
Tom Sepez
Lei, Dan, for review.
4 years, 3 months ago (2016-09-22 17:59:12 UTC) #6
dsinclair
lgtm w/ question https://codereview.chromium.org/2364673002/diff/1/core/fxcrt/include/cfx_count_ref.h File core/fxcrt/include/cfx_count_ref.h (right): https://codereview.chromium.org/2364673002/diff/1/core/fxcrt/include/cfx_count_ref.h#newcode70 core/fxcrt/include/cfx_count_ref.h:70: intptr_t m_RefCount; Any idea why this ...
4 years, 3 months ago (2016-09-22 18:01:45 UTC) #8
Tom Sepez
https://codereview.chromium.org/2364673002/diff/1/core/fxcrt/include/cfx_count_ref.h File core/fxcrt/include/cfx_count_ref.h (right): https://codereview.chromium.org/2364673002/diff/1/core/fxcrt/include/cfx_count_ref.h#newcode70 core/fxcrt/include/cfx_count_ref.h:70: intptr_t m_RefCount; On 2016/09/22 18:01:44, dsinclair wrote: > Any ...
4 years, 3 months ago (2016-09-22 18:10:19 UTC) #9
Tom Sepez
> Funny you should ask. Just discussing this on another thread. > See comment in ...
4 years, 3 months ago (2016-09-22 18:13:04 UTC) #10
Tom Sepez
PS#2 adds a comment and fixes the old comment.
4 years, 3 months ago (2016-09-22 18:21:31 UTC) #11
dsinclair
lgtm
4 years, 3 months ago (2016-09-22 18:22:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2364673002/20001
4 years, 3 months ago (2016-09-22 18:22:36 UTC) #14
commit-bot: I haz the power
4 years, 3 months ago (2016-09-22 18:37:18 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://pdfium.googlesource.com/pdfium/+/fef62e1f2bbf064100e6e262a10653f2374b...

Powered by Google App Engine
This is Rietveld 408576698