Re: SIGSEGV on fclose

From: Ulrich Drepper (drepper@redhat.com)
Date: Thu Jul 13 2000 - 11:17:02 EST


"Andi Kleen" <ak@suse.de> writes:

> The original poster passed it a NULL pointer though, not a random pointer.
> It would be certainly reasonable to check for NULL pointer in fclose,
> similar to free()

No, it would just hide a problem.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

- 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/



This archive was generated by hypermail 2b29 : Sat Jul 15 2000 - 21:00:17 EST