-
Notifications
You must be signed in to change notification settings - Fork 3.4k
NODERAWFS open() O_DIRECTORY / opendir() leak file descriptor on error #16452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
15 tasks
Thanks for great repro cases with these bugs! This should be fairly easy fix. I don't have time to look at it right now so labeled as "help wanted". |
tiran
added a commit
to tiran/emscripten
that referenced
this issue
Mar 10, 2022
nfd must be closed when open() O_DIRECTORY fails with ENOTDIR. Fixes: emscripten-core#16452 Signed-off-by: Christian Heimes <[email protected]>
You were right, it was a trivial fix. |
tiran
added a commit
to tiran/emscripten
that referenced
this issue
Mar 10, 2022
nfd must be closed when open() O_DIRECTORY fails with ENOTDIR. Fixes: emscripten-core#16452 Signed-off-by: Christian Heimes <[email protected]>
sbc100
pushed a commit
that referenced
this issue
Mar 11, 2022
nfd must be closed when open() O_DIRECTORY fails with ENOTDIR. Fixes: #16452 Signed-off-by: Christian Heimes <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
open()
withO_DIRECTORY
as used byopendir()
leaks a file descriptor if the filename is not a directory (ENOTDIR
).Version of emscripten/emsdk:
reproducer
The text was updated successfully, but these errors were encountered: