[webkit-changes] [WebKit/WebKit] c4f8b9: Detect mmap() failure in OSAllocator::tryReserveUn...

elahav noreply at github.com
Tue Feb 6 13:33:38 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c4f8b92246b4a2fd91a8ba0454d83b7c6d70fea1
      https://github.com/WebKit/WebKit/commit/c4f8b92246b4a2fd91a8ba0454d83b7c6d70fea1
  Author: Elad Lahav <e2lahav at gmail.com>
  Date:   2024-02-06 (Tue, 06 Feb 2024)

  Changed paths:
    M Source/WTF/wtf/posix/OSAllocatorPOSIX.cpp

  Log Message:
  -----------
  Detect mmap() failure in OSAllocator::tryReserveUncommittedAligned()
https://bugs.webkit.org/show_bug.cgi?id=268713

Reviewed by Keith Miller

Bail out if tryReserveUncomitted() fails. This avoids a call to
munmap() on a large region that the call never allocated.

* Source/WTF/wtf/posix/OSAllocatorPOSIX.cpp:
(WTF::OSAllocator::tryReserveUncommittedAligned):

Canonical link: https://commits.webkit.org/274171@main




More information about the webkit-changes mailing list