This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/21531] fclose with NULL is SEGV should set errno EFAULT or EBADF
- From: "schwab at linux-m68k dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 30 May 2017 05:33:15 +0000
- Subject: [Bug libc/21531] fclose with NULL is SEGV should set errno EFAULT or EBADF
- Auto-submitted: auto-generated
- References: <bug-21531-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21531
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
Summary|flose with NULL is SEGV |fclose with NULL is SEGV
|should set errno EFAULT or |should set errno EFAULT or
|EBADF |EBADF
--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
Calling fclose with NULL is undefined behaviour.
--
You are receiving this mail because:
You are on the CC list for the bug.