Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
SharedMemory::Handle::m_size should be more consistent
<https://webkit.org/b/209007> <rdar://problem/60340890> Reviewed by Darin Adler. * Platform/cocoa/SharedMemoryCocoa.cpp: (WebKit::SharedMemory::Handle::decode): - Return early if an invalid `size` is decoded. (WebKit::SharedMemory::map): - Drive-by fix to change '0' to 'nullptr'. - Since all known methods of creating a SharedMemory::Handle() set SharedMemory::Handle::m_size to a value of round_page(), this means we can also change `round_page(handle.m_size)` to `handle.m_size` in the call to mach_vm_map() since we know they're equal. Canonical link: https://commits.webkit.org/222133@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@258620 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
2 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters