* modules/argz (Depends-on): Add realloc-posix so that argz_append doesn’t wrongly fail with ENOMEM on AIX. --- ChangeLog | 4 ++++ modules/argz | 1 + 2 files changed, 5 insertions(+)
diff --git a/ChangeLog b/ChangeLog index 081d1de64b..e42514c1f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2024-11-04 Paul Eggert <egg...@cs.ucla.edu> + 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"] -- 2.43.0