Changeset 124723 in webkit
- Timestamp:
- Aug 5, 2012 6:22:40 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r124722 r124723 1 2012-08-05 Luke Macpherson <macpherson@chromium.org> 2 3 Fix null pointer dereference when CSSParser::sinkFloatingValueList() returns null and is passed to storeVariableDeclaration(). 4 https://bugs.webkit.org/show_bug.cgi?id=92461 5 6 Reviewed by Eric Seidel. 7 8 Test case that causes CSSParser::storeVariableDeclaration to be passed a null value. 9 10 * fast/css/variables/invalid-value-list-crash-expected.txt: Added. 11 * fast/css/variables/invalid-value-list-crash.html: Added. 12 1 13 2012-08-05 Kent Tamura <tkent@chromium.org> 2 14 -
trunk/Source/WebCore/ChangeLog
r124721 r124723 1 2012-08-05 Luke Macpherson <macpherson@chromium.org> 2 3 Fix null pointer dereference when CSSParser::sinkFloatingValueList() returns null and is passed to storeVariableDeclaration(). 4 https://bugs.webkit.org/show_bug.cgi?id=92461 5 6 Reviewed by Eric Seidel. 7 8 Invalid variable lists could cause CSSGrammar.y to pass null as value to storeVariableDeclaration, so we now check for null. 9 10 Test: fast/css/variables/invalid-value-list-crash.html 11 12 * css/CSSParser.cpp: 13 (WebCore::CSSParser::storeVariableDeclaration): 14 1 15 2012-08-03 Kent Tamura <tkent@chromium.org> 2 16 -
trunk/Source/WebCore/css/CSSParser.cpp
r124389 r124723 3026 3026 void CSSParser::storeVariableDeclaration(const CSSParserString& name, PassOwnPtr<CSSParserValueList> value, bool important) 3027 3027 { 3028 // When CSSGrammar.y encounters an invalid declaration it passes null for the CSSParserValueList, just bail. 3029 if (!value) 3030 return; 3031 3028 3032 ASSERT(name.length > 12); 3029 3033 AtomicString variableName = String(name.characters + 12, name.length - 12);
Note: See TracChangeset
for help on using the changeset viewer.