Title: [258752] trunk/Source/WebKit
- Revision
- 258752
- Author
- [email protected]
- Date
- 2020-03-19 22:06:59 -0700 (Thu, 19 Mar 2020)
Log 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.
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (258751 => 258752)
--- trunk/Source/WebKit/ChangeLog 2020-03-20 04:41:23 UTC (rev 258751)
+++ trunk/Source/WebKit/ChangeLog 2020-03-20 05:06:59 UTC (rev 258752)
@@ -1,3 +1,14 @@
+2020-03-19 David Kilzer <[email protected]>
+
+ 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.
+
2020-03-19 Tim Horton <[email protected]>
Unable to build WebKit with iOS 13.4 SDK
Modified: trunk/Source/WebKit/Platform/cocoa/SharedMemoryCocoa.cpp (258751 => 258752)
--- trunk/Source/WebKit/Platform/cocoa/SharedMemoryCocoa.cpp 2020-03-20 04:41:23 UTC (rev 258751)
+++ trunk/Source/WebKit/Platform/cocoa/SharedMemoryCocoa.cpp 2020-03-20 05:06:59 UTC (rev 258752)
@@ -117,7 +117,7 @@
{
ASSERT(size);
- mach_vm_address_t address;
+ mach_vm_address_t address = 0;
kern_return_t kr = mach_vm_allocate(mach_task_self(), &address, round_page(size), VM_FLAGS_ANYWHERE);
if (kr != KERN_SUCCESS) {
#if RELEASE_LOG_DISABLED
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes