[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fclose bug?
From: |
Jason Merrill |
Subject: |
fclose bug? |
Date: |
Sat, 02 Mar 2002 10:04:22 +0000 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i686-pc-linux-gnu) |
This testcase segfaults with the Red Hat glibc-2.2.4-19.3 rpm. AFAICT, the
second fclose should detect the error and return EOF rather than crashing.
#include <stdio.h>
int main ()
{
FILE *fp = fopen ("/dev/null", "r");
fclose (fp);
fclose (fp);
}
- fclose bug?,
Jason Merrill <=