2007-04-19 Mark Rowe <mrowe@apple.com>
authorbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Apr 2007 14:02:25 +0000 (14:02 +0000)
committerbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Apr 2007 14:02:25 +0000 (14:02 +0000)
commit20e8633b23dd93d591e94bdf651b06c0b672c3db
treed9e5156bb0d90b1aeaa24096316e4f7805f703a7
parentcc97a52f7e6665844c4d12e7a3ee31574f216907
2007-04-19  Mark Rowe  <mrowe@apple.com>

        Reviewed by Darin.

        Fix http://bugs.webkit.org/show_bug.cgi?id=13401
        Bug 13401: Reproducible crash calling myArray.sort(compareFn) from within
        a sort comparison function

        * kjs/array_object.cpp:
        (ArrayInstance::sort): Save/restore the static variables around calls to qsort
        to ensure nested calls to ArrayInstance::sort behave correctly.

2007-04-19  Mark Rowe  <mrowe@apple.com>

        Reviewed by Darin.

        Test for http://bugs.webkit.org/show_bug.cgi?id=13401
        Bug 13401: Reproducible crash calling myArray.sort(compareFn) from within
        a sort comparison function

        * fast/js/array-sort-reentrance-expected.txt: Added.
        * fast/js/array-sort-reentrance.html: Added.
        * fast/js/resources/array-sort-reentrance.js: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@20949 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/kjs/array_object.cpp
LayoutTests/ChangeLog
LayoutTests/fast/js/array-sort-reentrance-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/array-sort-reentrance.html [new file with mode: 0644]
LayoutTests/fast/js/resources/array-sort-reentrance.js [new file with mode: 0644]