This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][BZ #15701] Freopen with closed file descriptors.


On Wed, Oct 09, 2013 at 01:32:25PM -0600, Jeff Law wrote:
> On 10/09/13 13:21, OndÅej BÃlka wrote:
> >Hi,
> >
> >This bug complains about undefined behavior when user closes file
> >descriptor. This is again patch or close case.
> >
> >We could check this by asking kernel if descriptor is valid.
> >
> >Comments?
> >
> >
> >	* libio/freopen.c: Check if file descriptors are open.
> Couldn't this be done in a pre-load checker as well so that
> conforming code doesn't pay the checking penalty?
> 
Could, when we make one.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]