2011-05-23 Abhishek Arya <inferno@chromium.org>
authorAbhishek Arya <inferno@chromium.org>
Mon, 23 May 2011 18:27:13 +0000 (18:27 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Mon, 23 May 2011 19:39:35 +0000 (16:39 -0300)
commite1ed18da455dc88235a36b1cea504b87b77aa2c4
tree0b64c8e65c5400c7b8d757a5e32ce1130641cf47
parent27c2c6c310671b7da63b14a866b0e058e40ede7b
2011-05-23  Abhishek Arya  <inferno@chromium.org>

        Reviewed by Simon Fraser.

        Tests that we do not crash when parsing css color for integer or
        percentage values.
        https://bugs.webkit.org/show_bug.cgi?id=61293

        * fast/css/parse-color-int-or-percent-crash-expected.txt: Added.
        * fast/css/parse-color-int-or-percent-crash.html: Added.
2011-05-23  Abhishek Arya  <inferno@chromium.org>

        Reviewed by Simon Fraser.

        Terminate css color parsing on integers which are not followed
        by a terminator.
        https://bugs.webkit.org/show_bug.cgi?id=61293

        Test: fast/css/parse-color-int-or-percent-crash.html

        * css/CSSParser.cpp:
        (WebCore::parseColorIntOrPercentage):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87083 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/parse-color-int-or-percent-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/parse-color-int-or-percent-crash.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/css/CSSParser.cpp