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

Issue 2628233002: Custom toString() methods may delete annots. (Closed)

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

Description

Custom toString() methods may delete annots. In this case, we observe the destruction of the object, but have unfortunately saved a pointer to it in a local variable. BUG=679643 Review-Url: https://codereview.chromium.org/2628233002 Committed: https://pdfium.googlesource.com/pdfium/+/192497124e7cde747ade7bf89028586eea293be5

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -21 lines) Patch
M fpdfsdk/javascript/Annot.cpp View 3 chunks +29 lines, -20 lines 1 comment Download
M fpdfsdk/javascript/JS_Value.h View 2 chunks +4 lines, -1 line 0 comments Download
A testing/resources/javascript/bug_679643.in View 1 chunk +135 lines, -0 lines 0 comments Download
A testing/resources/javascript/bug_679643_expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (9 generated)
Tom Sepez
Dan, for review. See bug for details.
3 years, 11 months ago (2017-01-12 18:38:44 UTC) #7
dsinclair
lgtm https://codereview.chromium.org/2628233002/diff/1/fpdfsdk/javascript/Annot.cpp File fpdfsdk/javascript/Annot.cpp (right): https://codereview.chromium.org/2628233002/diff/1/fpdfsdk/javascript/Annot.cpp#newcode52 fpdfsdk/javascript/Annot.cpp:52: vp >> bHidden; // May invalidate m_pAnnot. This ...
3 years, 11 months ago (2017-01-12 19:14:40 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/2628233002/1
3 years, 11 months ago (2017-01-12 19:14:48 UTC) #10
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 19:15:09 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://pdfium.googlesource.com/pdfium/+/192497124e7cde747ade7bf89028586eea29...

Powered by Google App Engine
This is Rietveld 408576698