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

Issue 2384243002: Guard against double deletion of page views. (Closed)

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

Description

Guard against double deletion of page views. This CL adds a |IsBeingDestroyed| flag into the CPDFSDK_PageView. We then bail out of the pageview removal code early if the flag is set. BUG=chromium:652103 Committed: https://pdfium.googlesource.com/pdfium/+/bcf46238b4533a9da91f4fa5d7248bbc85511dbd

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -2 lines) Patch
M fpdfsdk/cpdfsdk_document.cpp View 1 chunk +5 lines, -1 line 2 comments Download
M fpdfsdk/cpdfsdk_pageview.h View 2 chunks +5 lines, -0 lines 0 comments Download
M fpdfsdk/cpdfsdk_pageview.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M fpdfsdk/fpdfview.cpp View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
dsinclair
PTAL. There are a lot of interactions between the pageview, page and annotations. Each time ...
4 years, 2 months ago (2016-10-03 18:17:20 UTC) #4
Tom Sepez
https://codereview.chromium.org/2384243002/diff/1/fpdfsdk/cpdfsdk_document.cpp File fpdfsdk/cpdfsdk_document.cpp (right): https://codereview.chromium.org/2384243002/diff/1/fpdfsdk/cpdfsdk_document.cpp#newcode143 fpdfsdk/cpdfsdk_document.cpp:143: pPageView->SetBeingDestroyed(); Can we this to the dtor? Then the ...
4 years, 2 months ago (2016-10-03 18:37:57 UTC) #7
dsinclair
https://codereview.chromium.org/2384243002/diff/1/fpdfsdk/cpdfsdk_document.cpp File fpdfsdk/cpdfsdk_document.cpp (right): https://codereview.chromium.org/2384243002/diff/1/fpdfsdk/cpdfsdk_document.cpp#newcode143 fpdfsdk/cpdfsdk_document.cpp:143: pPageView->SetBeingDestroyed(); On 2016/10/03 18:37:57, Tom Sepez wrote: > Can ...
4 years, 2 months ago (2016-10-03 18:47:08 UTC) #8
Tom Sepez
OK, LGTM.
4 years, 2 months ago (2016-10-03 19:03:20 UTC) #9
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/2384243002/1
4 years, 2 months ago (2016-10-03 20:02:12 UTC) #11
commit-bot: I haz the power
4 years, 2 months ago (2016-10-03 20:02:30 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://pdfium.googlesource.com/pdfium/+/bcf46238b4533a9da91f4fa5d7248bbc8551...

Powered by Google App Engine
This is Rietveld 408576698