Title: [98158] trunk/Source/WebKit/qt
Revision
98158
Author
[email protected]
Date
2011-10-21 15:01:54 -0700 (Fri, 21 Oct 2011)

Log Message

[Qt] Wrong type conversion in InspectorServerQt.cpp
https://bugs.webkit.org/show_bug.cgi?id=70639

Patch by Luiz Agostini <[email protected]> on 2011-10-21
Reviewed by Noam Rosenthal.

Wrong type conversion causes WebSocket handshake failures for the remote inspector.

* WebCoreSupport/InspectorServerQt.cpp:
(WebCore::parseWebSocketChallengeNumber):

Modified Paths

Diff

Modified: trunk/Source/WebKit/qt/ChangeLog (98157 => 98158)


--- trunk/Source/WebKit/qt/ChangeLog	2011-10-21 21:59:58 UTC (rev 98157)
+++ trunk/Source/WebKit/qt/ChangeLog	2011-10-21 22:01:54 UTC (rev 98158)
@@ -1,3 +1,15 @@
+2011-10-21  Luiz Agostini  <[email protected]>
+
+        [Qt] Wrong type conversion in InspectorServerQt.cpp
+        https://bugs.webkit.org/show_bug.cgi?id=70639
+
+        Reviewed by Noam Rosenthal.
+
+        Wrong type conversion causes WebSocket handshake failures for the remote inspector.
+
+        * WebCoreSupport/InspectorServerQt.cpp:
+        (WebCore::parseWebSocketChallengeNumber):
+
 2011-10-21  Zeno Albisser  <[email protected]>
 
         [Qt] WebKit build does not respect QMAKE_MAC_SDK variable.

Modified: trunk/Source/WebKit/qt/WebCoreSupport/InspectorServerQt.cpp (98157 => 98158)


--- trunk/Source/WebKit/qt/WebCoreSupport/InspectorServerQt.cpp	2011-10-21 21:59:58 UTC (rev 98157)
+++ trunk/Source/WebKit/qt/WebCoreSupport/InspectorServerQt.cpp	2011-10-21 22:01:54 UTC (rev 98158)
@@ -78,7 +78,7 @@
         else if ((c >= QLatin1Char('0')) && (c <= QLatin1Char('9')))
             nString.append(c);
     }
-    quint32 num = nString.toLong();
+    quint32 num = nString.toULong();
     quint32 result = (numSpaces ? (num / numSpaces) : num);
     return result;
 }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to