]> Savannah Git Hosting - gnulib.git/commitdiff
argz: defend against realloc (0, 0)
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Nov 2024 05:38:55 +0000 (21:38 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Nov 2024 05:40:19 +0000 (21:40 -0800)
* modules/argz (Depends-on): Add realloc-posix so that
argz_append doesn’t wrongly fail with ENOMEM on AIX.

ChangeLog
modules/argz

index 081d1de64bb83cf6537deb74c56b048e8774ff5f..e42514c1f7dceea404ef70bc6a6fcba57a501695 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2024-11-04  Paul Eggert  <eggert@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
index f93634799835782cf8f68f6ae6d81686af9f7ef9..cb8166fe4884cde2b34bb336b05d8a1e7722c74b 100644 (file)
@@ -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"]