Crash in Node::normalize.
authorinferno@chromium.org <inferno@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Feb 2012 20:53:54 +0000 (20:53 +0000)
committerinferno@chromium.org <inferno@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Feb 2012 20:53:54 +0000 (20:53 +0000)
https://bugs.webkit.org/show_bug.cgi?id=78135

Reviewed by Ryosuke Niwa.

No new tests. Original testcase does not reduce to manageable
extent.

* dom/Node.cpp:
(WebCore::Node::normalize):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107123 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/dom/Node.cpp

index 1f3e21e..6d5ea79 100644 (file)
@@ -1,3 +1,16 @@
+2012-02-08  Abhishek Arya  <inferno@chromium.org>
+
+        Crash in Node::normalize.
+        https://bugs.webkit.org/show_bug.cgi?id=78135
+
+        Reviewed by Ryosuke Niwa.
+
+        No new tests. Original testcase does not reduce to manageable
+        extent.
+
+        * dom/Node.cpp:
+        (WebCore::Node::normalize):
+
 2012-02-08  Antoine Labour  <piman@chromium.org>
 
         Make WebGL context current early to check validity
index ffe67ab..39b8fa8 100644 (file)
@@ -632,7 +632,7 @@ void Node::normalize()
             continue;
         }
 
-        Text* text = static_cast<Text*>(node.get());
+        RefPtr<Text> text = static_cast<Text*>(node.get());
 
         // Remove empty text nodes.
         if (!text->length()) {