Changeset 107369 in webkit
- Timestamp:
- Feb 9, 2012, 11:49:35 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/css/parsing-css-comment-expected.txt (added)
-
LayoutTests/fast/css/parsing-css-comment.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/CSSParser.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r107365 r107369 1 2012-02-09 Zoltan Herczeg <zherczeg@webkit.org> 2 3 Heap-buffer-overflow in WebCore::CSSParser::lex 4 https://bugs.webkit.org/show_bug.cgi?id=77402 5 6 Reviewed by Antti Koivisto. 7 8 Test various comment types. 9 10 * fast/css/parsing-css-comment-expected.txt: Added. 11 * fast/css/parsing-css-comment.html: Added. 12 1 13 2012-02-09 Kenichi Ishibashi <bashi@chromium.org> 2 14 -
trunk/Source/WebCore/ChangeLog
r107368 r107369 1 2012-02-09 Zoltan Herczeg <zherczeg@webkit.org> 2 3 Heap-buffer-overflow in WebCore::CSSParser::lex 4 https://bugs.webkit.org/show_bug.cgi?id=77402 5 6 Reviewed by Antti Koivisto. 7 8 Comments should check only a single \0 terminator. 9 10 Test: fast/css/parsing-css-comment.html 11 12 * css/CSSParser.cpp: 13 (WebCore::CSSParser::lex): 14 1 15 2012-02-09 Kentaro Hara <haraken@chromium.org> 2 16 -
trunk/Source/WebCore/css/CSSParser.cpp
r107289 r107369 8526 8526 ++m_currentCharacter; 8527 8527 while (m_currentCharacter[0] != '*' || m_currentCharacter[1] != '/') { 8528 if ( m_currentCharacter[0]== '\n')8528 if (*m_currentCharacter == '\n') 8529 8529 ++m_lineNumber; 8530 if ( m_currentCharacter[0] == '\0' && m_currentCharacter[1]== '\0') {8530 if (*m_currentCharacter == '\0') { 8531 8531 // Unterminated comments are simply ignored. 8532 8532 m_currentCharacter -= 2;
Note:
See TracChangeset
for help on using the changeset viewer.