Changeset 37353 in webkit for trunk/JavaScriptCore/kjs


Ignore:
Timestamp:
Oct 6, 2008, 4:47:08 PM (17 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

https://bugs.webkit.org/show_bug.cgi?id=21416
Pass 0 for size to VirtualAlloc, as documented by MSDN.
Identified by Application Verifier.


Reviewed by Darin Adler.

  • kjs/collector.cpp: (KJS::freeBlock):

WebCore:

https://bugs.webkit.org/show_bug.cgi?id=21416
Add missing null checks identified by Application Verifier.


Reviewed by Darin Adler.

  • platform/win/SharedTimerWin.cpp: (WebCore::clearTimer):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/collector.cpp

    r37297 r37353  
    232232    vm_deallocate(current_task(), reinterpret_cast<vm_address_t>(block), BLOCK_SIZE);
    233233#elif PLATFORM(WIN_OS)
    234     VirtualFree(block, BLOCK_SIZE, MEM_RELEASE);
     234    VirtualFree(block, 0, MEM_RELEASE);
    235235#elif HAVE(POSIX_MEMALIGN)
    236236    free(block);
Note: See TracChangeset for help on using the changeset viewer.