Changeset 258752 in webkit


Ignore:
Timestamp:
Mar 19, 2020 10:06:59 PM (4 years ago)
Author:
ddkilzer@apple.com
Message:

SharedMemory::allocate() should initialize address
<https://webkit.org/b/209315>
<rdar://problem/60606720>

Reviewed by Geoffrey Garen.

  • Platform/cocoa/SharedMemoryCocoa.cpp:

(WebKit::SharedMemory::allocate): Initialize address to zero.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r258751 r258752  
     12020-03-19  David Kilzer  <ddkilzer@apple.com>
     2
     3        SharedMemory::allocate() should initialize `address`
     4        <https://webkit.org/b/209315>
     5        <rdar://problem/60606720>
     6
     7        Reviewed by Geoffrey Garen.
     8
     9        * Platform/cocoa/SharedMemoryCocoa.cpp:
     10        (WebKit::SharedMemory::allocate): Initialize `address` to zero.
     11
    1122020-03-19  Tim Horton  <timothy_horton@apple.com>
    213
  • trunk/Source/WebKit/Platform/cocoa/SharedMemoryCocoa.cpp

    r258677 r258752  
    118118    ASSERT(size);
    119119
    120     mach_vm_address_t address;
     120    mach_vm_address_t address = 0;
    121121    kern_return_t kr = mach_vm_allocate(mach_task_self(), &address, round_page(size), VM_FLAGS_ANYWHERE);
    122122    if (kr != KERN_SUCCESS) {
Note: See TracChangeset for help on using the changeset viewer.