Branch: refs/heads/master
Home: https://github.com/tianocore/edk2-libc
Commit: b693e326a60faa844c8c266024059774acd33da4
https://github.com/tianocore/edk2-libc/commit/b693e326a60faa844c8c266024059774acd33da4
Author: Kloper Dimitry <[email protected]>
Date: 2023-08-23 (Wed, 23 Aug 2023)
Changed paths:
M StdLib/LibC/Uefi/Devices/UefiShell/daShell.c
Log Message:
-----------
edk2-libc/StdLib: file descriptor leak in rename()
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4529
rename() call leads to a function that makes open() for source file
to be renamed. The resulting file descriptor is never closed.
If you have to rename a couple of files this will quickly exhaust
the descriptor table.
The fix is trivial - just close the fd before returning from the function.
Cc: Rebecca Cran <[email protected]>
Cc: Michael D Kinney <[email protected]>
Cc: Jayaprakash N <[email protected]>
Signed-off-by: Kloper Dimitry <[email protected]>
Reviewed-by: Michael D Kinney <[email protected]>
Reviewed-by: Jayaprakash N <[email protected]>
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits