[webkit-changes] [WebKit/WebKit] 827512: [Cocoa] File descriptor leak in createTemporaryZip...

Olivier Blin noreply at github.com
Mon Oct 7 11:04:24 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 82751285ecd34af6c46e0121fb75dda9b3e32395
      https://github.com/WebKit/WebKit/commit/82751285ecd34af6c46e0121fb75dda9b3e32395
  Author: Olivier Blin <olivier.blin at softathome.com>
  Date:   2024-10-07 (Mon, 07 Oct 2024)

  Changed paths:
    M Source/WTF/wtf/cocoa/FileSystemCocoa.mm

  Log Message:
  -----------
  [Cocoa] File descriptor leak in createTemporaryZipArchive()
https://bugs.webkit.org/show_bug.cgi?id=280830

Reviewed by Darin Adler.

createTemporaryZipArchive() creates a file descriptor with mkostemp(),
but it does not use the return value. Close it to avoid a leak.

* Source/WTF/wtf/cocoa/FileSystemCocoa.mm:
(WTF::FileSystemImpl::createTemporaryZipArchive):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list