[Webkit-unassigned] [Bug 280830] New: [Cocoa] File descriptor leak in createTemporaryZipArchive()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 3 09:00:37 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=280830

            Bug ID: 280830
           Summary: [Cocoa] File descriptor leak in
                    createTemporaryZipArchive()
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: olivier.blin at softathome.com
                CC: cdumez at apple.com, darin at apple.com, ggaren at apple.com,
                    loic.yhuel at softathome.com, sihui_liu at apple.com

In Source/WTF/wtf/cocoa/FileSystemCocoa.mm, createTemporaryZipArchive() creates a file descriptor with mkstemp(), but it does not use the return value.
It should close the file descriptor to avoid a leak.

This has been seen by Loïc when reviewing bug 277734.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20241003/0f31f534/attachment-0001.htm>


More information about the webkit-unassigned mailing list