This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: I: [PATCH] asprintf error handling fix
- From: Ulrich Drepper <drepper at redhat dot com>
- To: "Dmitry V. Levin" <ldv at alt-linux dot org>
- Cc: libc-alpha at sources dot redhat dot com
- Date: 06 Dec 2001 01:02:06 -0800
- Subject: Re: I: [PATCH] asprintf error handling fix
- References: <20011205185828.GA8376@ldv.office.alt-linux.org>
- Reply-to: drepper at redhat dot com (Ulrich Drepper)
"Dmitry V. Levin" <ldv@alt-linux.org> writes:
> - When _IO_vfprintf call fails, _IO_vasprintf returns error code without
> freeing memory allocated before (either in this function or during
> _IO_vfprintf execution).
OK, I've changed that. Slightly different, though.
> - When either malloc or _IO_vfprintf call fails, _IO_vasprintf returns
> error code without setting result_ptr to zero.
That's nonsense. The code never did this and there is no reason to
ever do this.
> You may ask why asprintf should zero result_ptr in case of error?
And all bogus.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------