Title: [156224] trunk/Source/WebCore
Revision
156224
Author
[email protected]
Date
2013-09-20 22:35:57 -0700 (Fri, 20 Sep 2013)

Log Message

Another CSS parser leak fix
https://bugs.webkit.org/show_bug.cgi?id=121730

Reviewed by Alexey Proskuryakov.

* css/CSSGrammar.y.in: Added a missing adoptPtr.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (156223 => 156224)


--- trunk/Source/WebCore/ChangeLog	2013-09-21 05:35:15 UTC (rev 156223)
+++ trunk/Source/WebCore/ChangeLog	2013-09-21 05:35:57 UTC (rev 156224)
@@ -1,3 +1,12 @@
+2013-09-20  Darin Adler  <[email protected]>
+
+        Another CSS parser leak fix
+        https://bugs.webkit.org/show_bug.cgi?id=121730
+
+        Reviewed by Alexey Proskuryakov.
+
+        * css/CSSGrammar.y.in: Added a missing adoptPtr.
+
 2013-09-20  Alexey Proskuryakov  <[email protected]>
 
         Handle panning gestures messages properly on Windows

Modified: trunk/Source/WebCore/css/CSSGrammar.y.in (156223 => 156224)


--- trunk/Source/WebCore/css/CSSGrammar.y.in	2013-09-21 05:35:15 UTC (rev 156223)
+++ trunk/Source/WebCore/css/CSSGrammar.y.in	2013-09-21 05:35:57 UTC (rev 156224)
@@ -952,7 +952,7 @@
     before_region_rule WEBKIT_REGION_RULE_SYM WHITESPACE selector_list at_rule_header_end '{' at_rule_body_start maybe_space block_valid_rule_list save_block {
         OwnPtr<Vector<RefPtr<StyleRuleBase>>> ruleList = adoptPtr($9);
         if ($4)
-            $$ = parser->createRegionRule($4, ruleList.get()).leakRef();
+            $$ = parser->createRegionRule(adoptPtr($4).get(), ruleList.get()).leakRef();
         else {
             $$ = nullptr;
             parser->popRuleData();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to