bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug Report: sed-4.1.4 misinterprets uClibc's malloc (patch included)


From: Paul Eggert
Subject: Re: Bug Report: sed-4.1.4 misinterprets uClibc's malloc (patch included)
Date: Thu, 25 Aug 2005 12:49:37 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Yuri Vasilevski <address@hidden> writes:

> Recent versions of sed expect glibc behavior form malloc, i.e.
> malloc(0) return live pointer. This is not true for uClibc (and many
> other old/classical libc implementations).

Thanks, but I'd rather not go through the glibc regex implementation
looking for other instances of this problem; it will be a maintenance
and reliability hassle.

Instead, let's substitute a malloc that behaves compatibly with GNU
malloc.  I installed this change into gnulib, and I expect when this
patch trickles into sed, then sed will use the gnulib malloc
substitute on uClibc, and that will fix the problem there.

2005-08-25  Paul Eggert  <address@hidden>

        * modules/regex (Depends-on): Add malloc, since the code
        assumes that !malloc(0) means failure.

--- modules/regex       7 Jul 2005 08:08:39 -0000       1.10
+++ modules/regex       25 Aug 2005 19:43:51 -0000
@@ -15,6 +15,7 @@ Depends-on:
 alloca
 extensions
 gettext-h
+malloc
 restrict
 
 configure.ac:




reply via email to

[Prev in Thread] Current Thread [Next in Thread]