[Webkit-unassigned] [Bug 34729] New: [Qt] Exposing an QVariantMap containing QObjectStar to Javascript causes Segmentation Fault
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Feb 8 15:50:41 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=34729
Summary: [Qt] Exposing an QVariantMap containing QObjectStar to
Javascript causes Segmentation Fault
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebKit Qt
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: bruno.schmidt at gmail.com
Created an attachment (id=48370)
--> (https://bugs.webkit.org/attachment.cgi?id=48370)
Patch fixing the bug
If an QVariantMap containing QObjectStar is added to the to QtWebkit
Javascript, it's use causes Segmentation Fault.
It happens because, in the case QMetaType::QVariantMap, the "root" object that
is inside of a PassRefPtr is passed recursively inside a loop to recover the
content of the map, but the PassRefPtr semantics prohibit its use inside a
loop, so the "root" object mus be passed using the method "PassRefPtr::get" in
order to keep the current reference.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list