[Webkit-unassigned] [Bug 195661] New: Storing a Node in Ref/RefPtr inside its destructor results in double delete

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 12 20:42:30 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=195661

            Bug ID: 195661
           Summary: Storing a Node in Ref/RefPtr inside its destructor
                    results in double delete
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: rniwa at webkit.org

Right now, it's possible to store a Node to Ref/RefPtr inside any of Node's subclasses' destructors
and cause a nested calls to the destructor.

RefCounted<T> doesn't have this problem because m_refCount never reaches 0.
Implement a similar solution for Node.

-- 
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/20190313/6e600616/attachment-0001.html>


More information about the webkit-unassigned mailing list