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

Issue 2055473004: Fix crash in CXFA_Node::TryUserData() (speculative) (Closed)

Created:
4 years, 6 months ago by Tom Sepez
Modified:
4 years, 6 months ago
Reviewers:
Lei Zhang, dsinclair
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Fix crash in CXFA_Node::TryUserData() (speculative) Fix is speculative because I can't repro locally, but I know the current code is wrong. I fixed this intially in https://codereview.chromium.org/2015143005/ I then broke it again in https://codereview.chromium.org/2019333006/ There is another spot where we are still casting through void*, and the CXFA_Node*'s alignment is getting messed up when it fails to adjust for it's vtable. Using CFXJSE_HostObject consistently avoids the issue. Adding a virtual dtor to CFXJSE_HostObject might skirt the issue, but I want to be able to wrap simple objects without that penalty if desired. BUG=616339 Committed: https://pdfium.googlesource.com/pdfium/+/2334e9e583799a8cb2dfefb3c7e15c5a7da8ead0

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -3 lines) Patch
M xfa/fxjse/cfxjse_arguments.h View 1 chunk +2 lines, -1 line 0 comments Download
M xfa/fxjse/class.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M xfa/fxjse/include/fxjse.h View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 13 (8 generated)
Tom Sepez
Lei, for review. We're getting lots of reports of this.
4 years, 6 months ago (2016-06-09 00:25:02 UTC) #4
Lei Zhang
lgtm
4 years, 6 months ago (2016-06-09 00:30:03 UTC) #5
dsinclair
lgtm w/ nit: consistently incorrect in description.
4 years, 6 months ago (2016-06-09 14:26:00 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2055473004/1
4 years, 6 months ago (2016-06-09 16:32:30 UTC) #10
commit-bot: I haz the power
4 years, 6 months ago (2016-06-09 16:32:52 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://pdfium.googlesource.com/pdfium/+/2334e9e583799a8cb2dfefb3c7e15c5a7da8...

Powered by Google App Engine
This is Rietveld 408576698