A little more hardening for UString
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Apr 2009 05:56:18 +0000 (05:56 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Apr 2009 05:56:18 +0000 (05:56 +0000)
commite92d68268cb1ffdfec9721d694fce5018d8b6bb2
treed3b7ad86abe056223ead040edd7f3db95c69ae4b
parentf23f86d0d3fb8d320ca066d9867130ffbf122a2e
    A little more hardening for UString

        Reviewed by Maciej Stachowiak.

        Revised fix for <rdar://problem/5861045> in r42644.

        * runtime/UString.cpp:
        (JSC::newCapacityWithOverflowCheck): Added.
        (JSC::concatenate): Used newCapacityWithOverflowCheck().
        (JSC::UString::append): Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@42988 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/runtime/UString.cpp