WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
280830
[Cocoa] File descriptor leak in createTemporaryZipArchive()
https://bugs.webkit.org/show_bug.cgi?id=280830
Summary
[Cocoa] File descriptor leak in createTemporaryZipArchive()
Olivier Blin
Reported
2024-10-03 09:00:37 PDT
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
.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-10-03 10:00:48 PDT
<
rdar://problem/137212920
>
Olivier Blin
Comment 2
2024-10-07 05:31:07 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/34767
EWS
Comment 3
2024-10-07 11:04:05 PDT
Committed
284770@main
(82751285ecd3): <
https://commits.webkit.org/284770@main
> Reviewed commits have been landed. Closing PR #34767 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug