Yuri Vasilevski <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
* 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:
_______________________________________________
bug-gnulib mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnulib