[PATCH][BZ #15701] Freopen with closed file descriptors.
Ondřej Bílka
neleai@seznam.cz
Wed Oct 9 19:49:00 GMT 2013
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.
More information about the Libc-alpha
mailing list