Changeset 126681 in webkit
- Timestamp:
- Aug 25, 2012, 2:23:44 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r126680 r126681 1 2012-08-25 Michelangelo De Simone <michelangelo@webkit.org> 2 3 [Crash] Null pointer in CSSParser::parseMixFunction() 4 https://bugs.webkit.org/show_bug.cgi?id=94998 5 6 Reviewed by Benjamin Poulain. 7 8 New test cases added to check invalid comma-terminated values within mix(). 9 10 * css3/filters/custom/custom-filter-property-parsing-invalid-expected.txt: 11 * css3/filters/script-tests/custom-filter-property-parsing-invalid.js: 12 1 13 2012-08-24 Zan Dobersek <zandobersek@gmail.com> 2 14 -
trunk/LayoutTests/css3/filters/custom/custom-filter-property-parsing-invalid-expected.txt
r125845 r126681 100 100 PASS declaration.getPropertyValue('-webkit-filter') is null 101 101 102 Mix function with comma terminator : custom(none mix(url(shader), multiply clear,)) 103 PASS cssRule.type is 1 104 PASS declaration.length is 0 105 PASS declaration.getPropertyValue('-webkit-filter') is null 106 107 Mix function with one comma : custom(none mix(,)) 108 PASS cssRule.type is 1 109 PASS declaration.length is 0 110 PASS declaration.getPropertyValue('-webkit-filter') is null 111 102 112 No shader : custom(none, 10 20) 103 113 PASS cssRule.type is 1 -
trunk/LayoutTests/css3/filters/script-tests/custom-filter-property-parsing-invalid.js
r125845 r126681 48 48 testInvalidFilterRule("Mix function with 4 args", "custom(none mix(url(shader) multiply clear normal))"); 49 49 testInvalidFilterRule("Mix function with comma separators", "custom(none mix(url(shader), multiply, clear))"); 50 testInvalidFilterRule("Mix function with comma terminator", "custom(none mix(url(shader), multiply clear,))"); 51 testInvalidFilterRule("Mix function with one comma", "custom(none mix(,))"); 50 52 51 53 testInvalidFilterRule("No shader", "custom(none, 10 20)"); -
trunk/Source/WebCore/ChangeLog
r126675 r126681 1 2012-08-25 Michelangelo De Simone <michelangelo@webkit.org> 2 3 [Crash] Null pointer in CSSParser::parseMixFunction() 4 https://bugs.webkit.org/show_bug.cgi?id=94998 5 6 Reviewed by Benjamin Poulain. 7 8 parseMixFunction() may try to access invalid memory when the arguments of the 9 mix() function are comma-terminated. 10 11 * css/CSSParser.cpp: 12 (WebCore::CSSParser::parseMixFunction): 13 1 14 2012-08-24 Helder Correia <helder.correia@nokia.com> 2 15 -
trunk/Source/WebCore/css/CSSParser.cpp
r126524 r126681 7446 7446 7447 7447 CSSParserValueList* argsList = value->function->args.get(); 7448 if (!argsList) 7449 return 0; 7450 7448 7451 unsigned numArgs = argsList->size(); 7449 7452 if (numArgs < 1 || numArgs > 3)
Note:
See TracChangeset
for help on using the changeset viewer.