[Bug libc/21531] fclose with NULL is SEGV should set errno EFAULT or EBADF
jg at jguk dot org
sourceware-bugzilla@sourceware.org
Tue May 30 07:58:00 GMT 2017
https://sourceware.org/bugzilla/show_bug.cgi?id=21531
--- Comment #2 from Jon Grant <jg at jguk dot org> ---
I appreciate it is not in a specification, but NULL clearly is never going to
be a valid handle? Is it not better to reject it with EBADF or EFAULT? So
application can get the return code and appropriately handle it.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list