[Bug libc/13983] __libc_message() shouldn't blindly write to STDERR_FILENO

nenolod at dereferenced dot org sourceware-bugzilla@sourceware.org
Mon Apr 16 09:09:00 GMT 2012


http://sourceware.org/bugzilla/show_bug.cgi?id=13983

William Pitcock <nenolod at dereferenced dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #6343|0                           |1
        is obsolete|                            |

--- Comment #13 from William Pitcock <nenolod at dereferenced dot org> 2012-04-16 09:09:38 UTC ---
Created attachment 6344
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6344
check-stderr-v3.patch

A stronger check would be to compare against STDERR_FILENO instead of -1.  This
allows us to check that fd=2 is explictly stderr.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the Glibc-bugs mailing list