JavaScriptCore:
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Jul 2007 00:44:16 +0000 (00:44 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Jul 2007 00:44:16 +0000 (00:44 +0000)
commitf8f37dec03a42a8778df241eb85d39cf173e3aff
treee63b104eec12b548f213e71ba6b1f51edc26cd81
parentd17552c27e7900208247ada7b5b609052a5bf036
JavaScriptCore:

        Reviewed by Oliver Hunt.

        - fix <rdar://problem/5345432> PCRE computes length wrong for expressions such as "[**]"

        Test: fast/js/regexp-charclass-crash.html

        * pcre/pcre_compile.c: (pcre_compile2): Fix the preflight code that calls
        check_posix_syntax to match the actual regular expression compilation code;
        before it was missing the check of the first character.

LayoutTests:

        Reviewed by Oliver Hunt.

        - test for <rdar://problem/5345432> PCRE computes length wrong for expressions such as "[**]"

        * fast/js/regexp-charclass-crash-expected.txt: Added.
        * fast/js/regexp-charclass-crash.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@24430 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/pcre/pcre_compile.c
LayoutTests/ChangeLog
LayoutTests/fast/js/regexp-charclass-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/regexp-charclass-crash.html [new file with mode: 0644]