From 28f4f85058eb27c0bb15e60af8df59b7b9144439 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 17 Nov 2004 23:07:53 +0000 Subject: [PATCH] realloc, calloc portability fixes. --- lib/ChangeLog | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/ChangeLog b/lib/ChangeLog index 35743b03ff..a31078e3c0 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,10 @@ +2004-11-17 Paul Eggert + + * realloc.c (rpl_realloc): Call 'free' if n==0, since realloc + might fail. Problem reported by Yoann Vandoorselaere. + * calloc.c (rpl_calloc): Defend against buggy calloc implementations + that mishandle size_t overflow. + 2004-11-16 Paul Eggert * canon-host.c: Include "strdup.h". -- 2.30.2