This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH RFA #2] utils.c: Fix xcalloc (0, 0) behavior
- To: gdb-patches at sources dot redhat dot com
- Subject: Re: [PATCH RFA #2] utils.c: Fix xcalloc (0, 0) behavior
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Mon, 5 Mar 2001 18:11:11 -0700
- References: <1010306000635.ZM8056@ocotillo.lan>
On Mar 5, 5:06pm, Kevin Buettner wrote:
> I have tested this patch on i386-unknown-freebsd4.2 and
> i686-pc-linux-gnu and do not see any regressions.
>
> * utils.c (xmrealloc, xcalloc): Return NULL for zero-sized requests.
Another data point: I've just tested this patch on sparc-sun-solaris2.7
and all's well...
Kevin