Bug 210594

Summary: Validate socket in NetworkRTCProvider::wrapNewTCPConnection
Product: WebKit Reporter: youenn fablet <youennf>
Component: WebRTCAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: eric.carlson, ews-watchlist, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing none

Description youenn fablet 2020-04-16 01:02:34 PDT
Validate socket in NetworkRTCProvider::wrapNewTCPConnection
Comment 1 youenn fablet 2020-04-16 01:03:03 PDT
rdar://problem/61783652
Comment 2 youenn fablet 2020-04-16 01:04:58 PDT
Created attachment 396627 [details]
Patch
Comment 3 Eric Carlson 2020-04-16 06:59:58 PDT
Comment on attachment 396627 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=396627&action=review

> Source/WebKit/NetworkProcess/webrtc/NetworkRTCProvider.cpp:176
> +        if (auto socket = m_pendingIncomingSockets.take(newConnectionSocketIdentifier))
> +            addSocket(identifier, makeUnique<LibWebRTCSocketClient>(identifier, *this, WTFMove(socket), Socket::Type::ServerConnectionTCP));

Would logging when the socket is NULL be helpful?
Comment 4 youenn fablet 2020-04-17 05:38:45 PDT
Created attachment 396757 [details]
Patch for landing
Comment 5 EWS 2020-04-17 10:18:04 PDT
Committed r260260: <https://trac.webkit.org/changeset/260260>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 396757 [details].