Hi,

> The xmalloc and xrealloc functions defined in lib/xmalloc.c expect live
> pointers to be always returned form system's malloc and realloc
> function. This is an invalid assumption for most (all?) libc
> implementations ...

This was fixed in gnulib by Paul Eggert:

2004-05-30  Paul Eggert  <[EMAIL PROTECTED]>

        * xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
        macros to be defined.
        (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
        the allocator returns NULL because the requested size is zero.

You only need to use the new gnulib xmalloc.c instead of the one you found
in diffutils.

Bruno



_______________________________________________
bug-gnulib mailing list
bug-gnulib@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnulib

Reply via email to