Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Oct 2002 18:15:01 -0400 (EDT)
From:      Garrett Wollman <wollman@lcs.mit.edu>
To:        "Jin Guojun [DSD]" <j_guojun@lbl.gov>
Cc:        FreeBSD-gnats-submit@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG
Subject:   Re: kern/43599: Balloc did not check mallocated pointer in  libc/stdlib/strtod.c
Message-ID:  <200210022215.g92MF1I1002111@khavrinen.lcs.mit.edu>
In-Reply-To: <3D9B6D58.517BE8A4@lbl.gov>
References:  <200210022140.g92Le18Z084749@freefall.freebsd.org> <3D9B6D58.517BE8A4@lbl.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Wed, 02 Oct 2002 15:04:09 -0700, "Jin Guojun [DSD]" <j_guojun@lbl.gov> said:

> and timeout (SIGALARM) starts another printf() which causes overtaking the
> malloc() and returns 0 (NULL):

Programmer error.  It is forbidden to call any stdio function from a
signal handler.

-GAWollman


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210022215.g92MF1I1002111>