Title: [211981] trunk/Source/WebCore
Revision
211981
Author
[email protected]
Date
2017-02-09 13:10:15 -0800 (Thu, 09 Feb 2017)

Log Message

Fix i386 libwebrtc build
https://bugs.webkit.org/show_bug.cgi?id=168038

* Modules/mediastream/libwebrtc/LibWebRTCDataChannelHandler.h:
DataChannelInterface::buffered_amount returns a uint64_t, and we want a size_t.
If this overflows, then we've run out of memory and crashed a long time ago.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (211980 => 211981)


--- trunk/Source/WebCore/ChangeLog	2017-02-09 20:37:34 UTC (rev 211980)
+++ trunk/Source/WebCore/ChangeLog	2017-02-09 21:10:15 UTC (rev 211981)
@@ -1,3 +1,12 @@
+2017-02-09  Alex Christensen  <[email protected]>
+
+        Fix i386 libwebrtc build
+        https://bugs.webkit.org/show_bug.cgi?id=168038
+
+        * Modules/mediastream/libwebrtc/LibWebRTCDataChannelHandler.h:
+        DataChannelInterface::buffered_amount returns a uint64_t, and we want a size_t.
+        If this overflows, then we've run out of memory and crashed a long time ago.
+
 2017-02-09  Andreas Kling  <[email protected]>
 
         Document::settings() should return a const Settings&.

Modified: trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCDataChannelHandler.h (211980 => 211981)


--- trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCDataChannelHandler.h	2017-02-09 20:37:34 UTC (rev 211980)
+++ trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCDataChannelHandler.h	2017-02-09 21:10:15 UTC (rev 211981)
@@ -45,7 +45,7 @@
     bool sendStringData(const String&) final;
     bool sendRawData(const char*, size_t) final;
     void close() final;
-    size_t bufferedAmount() const final { return m_channel->buffered_amount(); }
+    size_t bufferedAmount() const final { return static_cast<size_t>(m_channel->buffered_amount()); }
 
     // webrtc::DataChannelObserver API
     void OnStateChange();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to