bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 14/14] argz: defend against realloc (0, 0)


From: Paul Eggert
Subject: [PATCH 14/14] argz: defend against realloc (0, 0)
Date: Mon, 4 Nov 2024 21:43:34 -0800

* 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  <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
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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]