JavaScriptCore:

        Reviewed by Maciej.
        
        Fix for Repeated string concatenation results in OOM crash
        http://bugs.webkit.org/show_bug.cgi?id=11131

        * kjs/operations.cpp:
        (KJS::add): Throw exception if string addition result is null
        * kjs/ustring.cpp:
        (KJS::UString::UString): Don't call memcpy when malloc failed

LayoutTests:

        Reviewed by Maciej.
        
        Test for "Repeated string concatenation results in OOM crash"
        http://bugs.webkit.org/show_bug.cgi?id=11131

        * fast/js/resources/string-concatenate-outofmemory.js: Added.
        * fast/js/string-concatenate-outofmemory-expected.txt: Added.
        * fast/js/string-concatenate-outofmemory.html: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19178 268f45cc-cd09-0410-ab3c-d52691b4dbfc
7 files changed