Title: [212713] trunk/Source/WebKit2
Revision
212713
Author
[email protected]
Date
2017-02-21 08:27:35 -0800 (Tue, 21 Feb 2017)

Log Message

[WebRTC] LibWebRTCSocket::SendTo message should have a correct SocketAddress
https://bugs.webkit.org/show_bug.cgi?id=168636

Patch by Youenn Fablet <[email protected]> on 2017-02-21
Reviewed by Eric Carlson.

* WebProcess/Network/webrtc/LibWebRTCSocket.cpp:
(WebKit::LibWebRTCSocket::SendTo): Ensuring address remains valid during SendTo message lifetime.

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (212712 => 212713)


--- trunk/Source/WebKit2/ChangeLog	2017-02-21 10:38:58 UTC (rev 212712)
+++ trunk/Source/WebKit2/ChangeLog	2017-02-21 16:27:35 UTC (rev 212713)
@@ -1,3 +1,13 @@
+2017-02-21  Youenn Fablet  <[email protected]>
+
+        [WebRTC] LibWebRTCSocket::SendTo message should have a correct SocketAddress
+        https://bugs.webkit.org/show_bug.cgi?id=168636
+
+        Reviewed by Eric Carlson.
+
+        * WebProcess/Network/webrtc/LibWebRTCSocket.cpp:
+        (WebKit::LibWebRTCSocket::SendTo): Ensuring address remains valid during SendTo message lifetime.
+
 2017-02-21  Alex Christensen  <[email protected]>
 
         Unreviewed, rolling out r212699.

Modified: trunk/Source/WebKit2/WebProcess/Network/webrtc/LibWebRTCSocket.cpp (212712 => 212713)


--- trunk/Source/WebKit2/WebProcess/Network/webrtc/LibWebRTCSocket.cpp	2017-02-21 10:38:58 UTC (rev 212712)
+++ trunk/Source/WebKit2/WebProcess/Network/webrtc/LibWebRTCSocket.cpp	2017-02-21 16:27:35 UTC (rev 212713)
@@ -136,7 +136,8 @@
     sendOnMainThread([identifier, buffer = WTFMove(buffer), address, options](IPC::Connection& connection) {
         IPC::DataReference data(reinterpret_cast<const uint8_t*>(buffer->data()), buffer->size());
         String srtpAuthKey = authKey(options);
-        Messages::NetworkRTCSocket::SendTo message(data, RTCNetwork::SocketAddress(address), options.packet_id, options.packet_time_params.rtp_sendtime_extension_id, srtpAuthKey, options.packet_time_params.srtp_packet_index, options.dscp);
+        RTCNetwork::SocketAddress socketAddress(address);
+        Messages::NetworkRTCSocket::SendTo message(data, socketAddress, options.packet_id, options.packet_time_params.rtp_sendtime_extension_id, srtpAuthKey, options.packet_time_params.srtp_packet_index, options.dscp);
         connection.send(WTFMove(message), identifier);
     });
     return size;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to