Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 22cf494d8b679d4778bb90dbbf8a3d1f8747fa52
      
https://github.com/WebKit/WebKit/commit/22cf494d8b679d4778bb90dbbf8a3d1f8747fa52
  Author: Fujii Hironori <[email protected]>
  Date:   2025-03-21 (Fri, 21 Mar 2025)

  Changed paths:
    M Source/WTF/wtf/win/MappedFileDataWin.cpp

  Log Message:
  -----------
  REGRESSION(292461@main): [Win] MappedFileData is inaccessible
https://bugs.webkit.org/show_bug.cgi?id=290159

Unreviewed crash fix for Windows port after
<https://commits.webkit.org/292461@main>.

FileHandle::map() of Windows port always returned an invalid
MappedFileData. It released the file mapping immediately.

MappedFileData of Windows port has two members:
>    std::span<uint8_t> m_fileData;
>    Win32Handle m_fileMapping;

If a MappedFileData is moved, m_fileMapping is cleared, but m_fileData
is not cleared. ~MappedFileData released the file mapping if
m_fileData wasn't null. ~MappedFileData should check m_fileMapping
too.

* Source/WTF/wtf/win/MappedFileDataWin.cpp:
(WTF::FileSystemImpl::MappedFileData::~MappedFileData):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to