![]() |
|
Message-ID: <aHASPPxzQQDjuYAN@voyager> Date: Thu, 10 Jul 2025 21:19:24 +0200 From: Markus Wichmann <nullplan@....net> To: musl@...ts.openwall.com Cc: Luca Kellermann <mailto.luca.kellermann@...il.com> Subject: Re: [PATCH 3/4] scandir: fix leaks caused by cancellation Am Thu, Jul 10, 2025 at 08:51:30PM +0200 schrieb Luca Kellermann: > opendir(), sel(), closedir(), or cmp() might act upon a cancellation > request. because scandir() did not install a cancellation cleanup > handler, this could lead to memory and file descriptor leaks. scandir() is on the "may be cancel-point" list in POSIX-2024, so it would also be acceptable to just disable cancellation for the duration of the function (since it's not on the "shall be cancel-point" list). Ciao, Markus
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.