[Webkit-unassigned] [Bug 196073] New: [GLIB] User data not correctly passed to callback of functions and constructors with no parameters
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Mar 21 04:03:39 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=196073
Bug ID: 196073
Summary: [GLIB] User data not correctly passed to callback of
functions and constructors with no parameters
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: cgarcia at igalia.com
CC: bugs-noreply at webkitgtk.org, mcatanzaro at igalia.com
This is because GClosure always expects a first parameter as instance. In case of functions or constructors with no parameters we insert a fake instance which is just a null pointer that is just ignored by the callback. But if the function/constructor has user data the callback will expect one parameter for the user data. In thta case we can simply swap instance/user data so that the fake instance will be the second argument and user data the first one.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190321/9af343d9/attachment.html>
More information about the webkit-unassigned
mailing list