Messages in this thread | | | Date | Mon, 17 Jul 2000 03:56:55 +0200 (CEST) | From | Igmar Palsenberg <> | Subject | Re: fclose() again |
| |
On Fri, 14 Jul 2000, Evan Langlois wrote:
> Well, according to the man page, fclose() should return EBADF if the passed > argument is not an open stream. No where does it say that it segfaults, and > the I don't see when it returns EBADF instead of segfaulting.
Stream is defines as an struct you get from fopen() and relatives. Feeding it some random data isn't considered a valid steam.
Patch the programs that do it that way, the're broken.
> I think the library might need to be patched, wherever it is segfaulting.
No. The program needs to be patched.
> ***** quote ************ > ** fclose requires a valid FILE object pointer, and NULL isn't among them. > ** Case closed. > ** > ** Andreas.
Igmar
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |