From: Paul Eggert Date: Tue, 5 Nov 2024 05:38:55 +0000 (-0800) Subject: argz: defend against realloc (0, 0) X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=56e88183f3e910c45fd3af555fe3475aef58e050;p=gnulib.git argz: defend against realloc (0, 0) * modules/argz (Depends-on): Add realloc-posix so that argz_append doesn’t wrongly fail with ENOMEM on AIX. --- diff --git a/ChangeLog b/ChangeLog index 081d1de64b..e42514c1f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2024-11-04 Paul Eggert + argz: defend against realloc (0, 0) + * modules/argz (Depends-on): Add realloc-posix so that + argz_append doesn’t wrongly fail with ENOMEM on AIX. + realloc-posix: update doc * doc/posix-functions/realloc.texi: Update to match recent Gnulib changes and OS discoveries, and to clarify and simplify by diff --git a/modules/argz b/modules/argz index f936347998..cb8166fe48 100644 --- a/modules/argz +++ b/modules/argz @@ -10,6 +10,7 @@ Depends-on: gen-header memmove [test -n "$ARGZ_H"] mempcpy [test -n "$ARGZ_H"] +realloc-posix [test -n "$ARGZ_H"] stpcpy [test -n "$ARGZ_H"] strndup [test -n "$ARGZ_H"] strnlen [test -n "$ARGZ_H"]