Title: [258677] trunk/Source/WebKit
- Revision
- 258677
- Author
- [email protected]
- Date
- 2020-03-18 20:07:05 -0700 (Wed, 18 Mar 2020)
Log Message
SharedMemory::Handle::decode shouldn't check rounded size
https://bugs.webkit.org/show_bug.cgi?id=209263
Reviewed by Sam Weinig.
* Platform/cocoa/SharedMemoryCocoa.cpp:
(WebKit::SharedMemory::Handle::decode):
(WebKit::SharedMemory::map):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (258676 => 258677)
--- trunk/Source/WebKit/ChangeLog 2020-03-19 03:05:17 UTC (rev 258676)
+++ trunk/Source/WebKit/ChangeLog 2020-03-19 03:07:05 UTC (rev 258677)
@@ -1,3 +1,14 @@
+2020-03-18 Saam Barati <[email protected]>
+
+ SharedMemory::Handle::decode shouldn't check rounded size
+ https://bugs.webkit.org/show_bug.cgi?id=209263
+
+ Reviewed by Sam Weinig.
+
+ * Platform/cocoa/SharedMemoryCocoa.cpp:
+ (WebKit::SharedMemory::Handle::decode):
+ (WebKit::SharedMemory::map):
+
2020-03-18 Fujii Hironori <[email protected]>
WebCoreArgumentCoders should check bufferIsLargeEnoughToContain before allocating buffers
Modified: trunk/Source/WebKit/Platform/cocoa/SharedMemoryCocoa.cpp (258676 => 258677)
--- trunk/Source/WebKit/Platform/cocoa/SharedMemoryCocoa.cpp 2020-03-19 03:05:17 UTC (rev 258676)
+++ trunk/Source/WebKit/Platform/cocoa/SharedMemoryCocoa.cpp 2020-03-19 03:07:05 UTC (rev 258677)
@@ -93,8 +93,6 @@
uint64_t size;
if (!decoder.decode(size))
return false;
- if (size != round_page(size))
- return false;
IPC::MachPort machPort;
if (!decoder.decode(machPort))
@@ -194,8 +192,6 @@
if (handle.isNull())
return nullptr;
- ASSERT(round_page(handle.m_size) == handle.m_size);
-
vm_prot_t vmProtection = machProtection(protection);
mach_vm_address_t mappedAddress = 0;
kern_return_t kr = mach_vm_map(mach_task_self(), &mappedAddress, handle.m_size, 0, VM_FLAGS_ANYWHERE, handle.m_port, 0, false, vmProtection, vmProtection, VM_INHERIT_NONE);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes