Title: [151615] branches/dfgFourthTier/Source/WTF
Revision
151615
Author
[email protected]
Date
2013-06-15 15:29:50 -0700 (Sat, 15 Jun 2013)

Log Message

Printing a StringImpl* should really guard against NULL
https://bugs.webkit.org/show_bug.cgi?id=117675

Reviewed by Mark Hahnenberg.

* wtf/PrintStream.cpp:
(WTF::printInternal):

Modified Paths

Diff

Modified: branches/dfgFourthTier/Source/WTF/ChangeLog (151614 => 151615)


--- branches/dfgFourthTier/Source/WTF/ChangeLog	2013-06-15 15:44:18 UTC (rev 151614)
+++ branches/dfgFourthTier/Source/WTF/ChangeLog	2013-06-15 22:29:50 UTC (rev 151615)
@@ -1,3 +1,13 @@
+2013-06-15  Filip Pizlo  <[email protected]>
+
+        Printing a StringImpl* should really guard against NULL
+        https://bugs.webkit.org/show_bug.cgi?id=117675
+
+        Reviewed by Mark Hahnenberg.
+
+        * wtf/PrintStream.cpp:
+        (WTF::printInternal):
+
 2013-06-11  Filip Pizlo  <[email protected]>
 
         fourthTier: DFG should support op_in and it should use patching to make it fast

Modified: branches/dfgFourthTier/Source/WTF/wtf/PrintStream.cpp (151614 => 151615)


--- branches/dfgFourthTier/Source/WTF/wtf/PrintStream.cpp	2013-06-15 15:44:18 UTC (rev 151614)
+++ branches/dfgFourthTier/Source/WTF/wtf/PrintStream.cpp	2013-06-15 22:29:50 UTC (rev 151615)
@@ -64,8 +64,10 @@
 
 void printInternal(PrintStream& out, const StringImpl* string)
 {
-    if (!string)
+    if (!string) {
         out.print("(null StringImpl*)");
+        return;
+    }
     out.print(string->utf8());
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to