Re: [PATCH 2/5] libdwfl/offline.c: Avoid closing invalid fd

2025-02-03 Thread Mark Wielaard
Hi Aaron, On Thu, Jan 30, 2025 at 09:35:51PM -0500, Aaron Merey wrote: > process_archive may be called with an fd argument of -1, which > libelf interprets as "no file opened". However when closing > the fd process_archive does not check whether the fd is valid > and may attempt to close an fd of

[PATCH 2/5] libdwfl/offline.c: Avoid closing invalid fd

2025-01-30 Thread Aaron Merey
process_archive may be called with an fd argument of -1, which libelf interprets as "no file opened". However when closing the fd process_archive does not check whether the fd is valid and may attempt to close an fd of -1. Signed-off-by: Aaron Merey --- libdwfl/offline.c | 3 ++- 1 file changed