Changeset 56956 in webkit
- Timestamp:
- Apr 1, 2010 5:44:03 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r56955 r56956 1 2010-04-01 Chris Evans <cevans@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 Add test for XSLT NULL crash: 6 https://bugs.webkit.org/show_bug.cgi?id=36804 7 8 * LayoutTests/fast/xsl/xslt-bad-import-uri.html: added 9 * LayoutTests/fast/xsl/xslt-bad-import-uri-expected.txt: added 10 * LayoutTests/fast/xsl/resources/xslt-bad-import-uri.xml: added 11 * LayoutTests/fast/xsl/resources/xslt-bad-import-uri.xsl: added 12 1 13 2010-04-01 Alexey Proskuryakov <ap@apple.com> 2 14 -
trunk/WebCore/ChangeLog
r56955 r56956 1 2010-04-01 Chris Evans <cevans@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 Fix a NULL pointer crash if @import fails to load a stylesheet. 6 7 https://bugs.webkit.org/show_bug.cgi?id=36804 8 9 Test: fast/xsl/xslt-bad-import-uri.html 10 11 * xml/XSLStyleSheetLibxslt.cpp: 12 (WebCore::XSLStyleSheet::parseString): 13 Handle an empty string gracefully. An empty string has a NULL 14 buffer, which we pass in to xmlCreateMemoryParserCtxt(). It returns 15 NULL if it is passed a NULL buffer. 16 In the top-level XSL case, the current code does not crash "by luck" 17 because the other APIs used can handle a NULL argument. In the 18 @import case, additional code runs which will deference the NULL. 19 1 20 2010-04-01 Alexey Proskuryakov <ap@apple.com> 2 21 -
trunk/WebCore/xml/XSLStyleSheetLibxslt.cpp
r56825 r56956 155 155 156 156 xmlParserCtxtPtr ctxt = xmlCreateMemoryParserCtxt(buffer, size); 157 if (!ctxt) 158 return 0; 157 159 158 160 if (m_parentStyleSheet) {
Note: See TracChangeset
for help on using the changeset viewer.