Changeset 26862 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Oct 21, 2007, 10:44:14 PM (18 years ago)
Author:
bdash
Message:

2007-10-21 Mark Rowe <[email protected]>

Reviewed by Mitz.

Fix http://bugs.webkit.org/show_bug.cgi?id=15603
Bug 15603: Regression(r26847): Crash when sorting an empty array from JavaScript

  • kjs/array_object.cpp: (KJS::freeStorage): Reinstate null-check that was removed in r26847.

2007-10-21 Mark Rowe <[email protected]>

Reviewed by Mitz.

Test for http://bugs.webkit.org/show_bug.cgi?id=15603
Bug 15603: Regression(r26847): Crash when sorting an empty array from JavaScript

  • fast/js/kde/Array-expected.txt:
  • fast/js/kde/resources/Array.js: Update to cover sorting an empty array.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r26850 r26862  
     12007-10-21  Mark Rowe  <[email protected]>
     2
     3        Reviewed by Mitz.
     4
     5        Fix http://bugs.webkit.org/show_bug.cgi?id=15603
     6        Bug 15603: Regression(r26847): Crash when sorting an empty array from JavaScript
     7
     8        * kjs/array_object.cpp:
     9        (KJS::freeStorage): Reinstate null-check that was removed in r26847.
     10
    1112007-10-21  Darin Adler  <[email protected]>
    212
  • trunk/JavaScriptCore/kjs/array_object.cpp

    r26850 r26862  
    7676static inline void freeStorage(JSValue** storage)
    7777{
    78   fastFree(storage - 2);
     78    if (storage)
     79        fastFree(storage - 2);
    7980}
    8081
Note: See TracChangeset for help on using the changeset viewer.