This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: I: [PATCH] few asprintf error handling fixes
- From: James Antill <james at and dot org>
- To: Roland McGrath <roland at redhat dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Thu, 03 Jun 2004 10:38:14 -0400
- Subject: Re: I: [PATCH] few asprintf error handling fixes
- References: <200406020048.i520mvWI005498@magilla.sf.frob.com>
Roland McGrath <roland@redhat.com> writes:
>> The current behavior is undefined behavior, the result pointer after
>> failed asprintf call may contain any value, e.g. pointer to already freed
>> memory. I'm doubt that some programs could depend on this behavior.
>
> You mean that actually happens now?
Very much so, but only on glibc, this was "discussed" in late 2001...
http://sources.redhat.com/ml/libc-alpha/2001-12/msg00021.html
http://sources.redhat.com/ml/libc-alpha/2001-12/msg00029.html
http://sources.redhat.com/ml/libc-alpha/2001-12/msg00029.html
http://sources.redhat.com/ml/libc-alpha/2001-12/msg00041.html
http://sources.redhat.com/ml/libc-alpha/2001-12/msg00045.html
http://sources.redhat.com/ml/libc-alpha/2001-12/msg00050.html
http://sources.redhat.com/ml/libc-alpha/2001-12/msg00051.html
http://sources.redhat.com/ml/libc-alpha/2001-12/msg00100.html
http://sources.redhat.com/ml/libc-alpha/2001-12/msg00121.html
...etc.
--
# James Antill -- james@and.org
:0:
* ^From: .*james@and\.org
/dev/null