[Rpm-maint] [rpm-software-management/rpm] Fix possible descriptor leak in fsmOpenat (PR #2175)
Dmitry Antipov
notifications at github.com
Wed Sep 7 09:59:17 UTC 2022
For the very unlikely case when `openat()` succeeded but `fstatat()`
doesn't, the directory descriptor may be leaved opened. So add `fsmClose()`
as an extra precaution for this particular case.
Suggested-by: Pavel Kopylov <pkopylov at cloudlinux.com>
Signed-off-by: Dmitry Antipov <dantipov at cloudlinux.com>
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/2175
-- Commit Summary --
* Fix possible descriptor leak in fsmOpenat
-- File Changes --
M lib/fsm.c (2)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/2175.patch
https://github.com/rpm-software-management/rpm/pull/2175.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2175
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/2175 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220907/f31156ac/attachment.html>
More information about the Rpm-maint
mailing list