[Webkit-unassigned] [Bug 160281] New: [soup] Incorrect usage of relaxAdoptionRequirement in the constructor of SocketStreamHandle

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 27 18:42:45 PDT 2016


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

            Bug ID: 160281
           Summary: [soup] Incorrect usage of relaxAdoptionRequirement in
                    the constructor of SocketStreamHandle
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Platform
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: Hironori.Fujii at sony.com

(Bug 160229 Comment #6)

> View in context:
> https://bugs.webkit.org/attachment.cgi?id=284672&action=review
> 
> > Source/WebCore/ChangeLog:11
> > +        An assertion fails because refcount of SocketStreamHandle is
> > +        incremented before adoptRef, in the constructor of
> > +        SocketStreamHandle.  The constructor of SocketStreamHandle needs
> > +        to increment recount because it passes this pointer to libsoup.
> 
> This is an incorrect solution; relaxAdoptionRequirement should *not* be used
> here. The correct solution is to make the constructor private and make a
> public creation function which does the rest of the job of initializing the
> object, *after* the constructor has run and we have the object pointer
> inside a Ref already.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160728/4b9ef33a/attachment.html>


More information about the webkit-unassigned mailing list