Title: [253271] trunk/Source/ThirdParty/libwebrtc
Revision
253271
Author
[email protected]
Date
2019-12-08 07:58:10 -0800 (Sun, 08 Dec 2019)

Log Message

Add more logging to physical socket server when a socket file descriptor is invalid
https://bugs.webkit.org/show_bug.cgi?id=204948

Reviewed by Darin Adler.

* Source/webrtc/rtc_base/physical_socket_server.cc:

Modified Paths

Diff

Modified: trunk/Source/ThirdParty/libwebrtc/ChangeLog (253270 => 253271)


--- trunk/Source/ThirdParty/libwebrtc/ChangeLog	2019-12-08 15:30:50 UTC (rev 253270)
+++ trunk/Source/ThirdParty/libwebrtc/ChangeLog	2019-12-08 15:58:10 UTC (rev 253271)
@@ -1,3 +1,12 @@
+2019-12-08  youenn fablet  <[email protected]>
+
+        Add more logging to physical socket server when a socket file descriptor is invalid
+        https://bugs.webkit.org/show_bug.cgi?id=204948
+
+        Reviewed by Darin Adler.
+
+        * Source/webrtc/rtc_base/physical_socket_server.cc:
+
 2019-11-15  Philippe Normand  <[email protected]>
 
         Unreviewed, GTK/WPE Debug build fix after r252472.

Modified: trunk/Source/ThirdParty/libwebrtc/Source/webrtc/rtc_base/physical_socket_server.cc (253270 => 253271)


--- trunk/Source/ThirdParty/libwebrtc/Source/webrtc/rtc_base/physical_socket_server.cc	2019-12-08 15:30:50 UTC (rev 253270)
+++ trunk/Source/ThirdParty/libwebrtc/Source/webrtc/rtc_base/physical_socket_server.cc	2019-12-08 15:58:10 UTC (rev 253271)
@@ -594,8 +594,10 @@
 bool SocketDispatcher::Initialize() {
   RTC_DCHECK(s_ != INVALID_SOCKET);
 #if defined(WEBRTC_WEBKIT_BUILD)
-  if (s_ < 0 || s_ >= FD_SETSIZE)
+  if (s_ < 0 || s_ >= FD_SETSIZE) {
+    RTC_LOG_ERR(LS_ERROR) << "SocketDispatcher::Initialize, file descriptor is invalid";
     return false;
+  }
 #endif
 // Must be a non-blocking
 #if defined(WEBRTC_WIN)
@@ -1433,8 +1435,10 @@
         // FD_SETSIZE will result in undefined behavior.
         RTC_DCHECK_LT(fd, FD_SETSIZE);
 #if defined(WEBRTC_WEBKIT_BUILD)
-        if (fd < 0 || fd >= FD_SETSIZE)
+        if (fd < 0 || fd >= FD_SETSIZE) {
+          RTC_LOG_ERR(LS_ERROR) << "PhysicalSocketServer::WaitSelect, selecting a file descriptor that is invalid";
           continue;
+        }
 #endif
         if (fd > fdmax)
           fdmax = fd;
@@ -1474,8 +1478,10 @@
         int fd = pdispatcher->GetDescriptor();
 
 #if defined(WEBRTC_WEBKIT_BUILD)
-        if (fd < 0 || fd >= FD_SETSIZE)
+        if (fd < 0 || fd >= FD_SETSIZE) {
+          RTC_LOG_ERR(LS_ERROR) << "PhysicalSocketServer::WaitSelect, signaled file descriptor is invalid";
           continue;
+        }
 #endif
 
         bool readable = FD_ISSET(fd, &fdsRead);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to