Skip to content
  • mrowe@apple.com's avatar
    2008-03-27 Darin Adler <darin@apple.com> · cb17bd09
    mrowe@apple.com authored
            Reviewed by Mark Rowe.
    
            <rdar://problem/5826236> Regular expressions with large nested repetition counts can have their
            compiled length calculated incorrectly.
    
            * pcre/pcre_compile.cpp:
            (multiplyWithOverflowCheck):
            (calculateCompiledPatternLength): Check for overflow when dealing with nested repetition counts
            and bail with an error rather than returning incorrect results.
    
    2008-03-27  Mark Rowe  <mrowe@apple.com>
    
            Reviewed by Adam Roben.
    
            Tests for <rdar://problem/5826236> Regular expressions with large nested repetition counts can have their
            compiled length calculated incorrectly.
    
            * fast/js/regexp-overflow-expected.txt:
            * fast/js/resources/regexp-overflow.js:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31388 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    cb17bd09