summaryrefslogtreecommitdiff
path: root/modules/reallocarray
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-04-18 16:53:11 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2021-04-18 20:59:52 -0700
commitd4e52e5e3c25942710cab4d5a3e78a761f1fa77c (patch)
tree050db37585fbd817b7b20a6b6968e9dd0d454eaa /modules/reallocarray
parent6c9d1972b202299f6f4e41ec810e13d17be605e2 (diff)
downloadgnulib-d4e52e5e3c25942710cab4d5a3e78a761f1fa77c.tar.gz
safe-alloc: simplify via reallocarray
* lib/safe-alloc.c: Do not include xalloc-oversized.h. (safe_alloc_alloc_n, safe_alloc_realloc_n): Use reallocarray to check for size or ptrdiff_t overflow. * modules/reallocarray (License): Switch from LGPL to LGPLv2+, as this is needed for safe-alloc and anyway is more appropriate for this library function common with BSD. * modules/safe-alloc (Depends-on): Depend on reallocarray rather than xalloc-oversized.
Diffstat (limited to 'modules/reallocarray')
-rw-r--r--modules/reallocarray2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/reallocarray b/modules/reallocarray
index 11d32bb5fd..a64c6fd2d0 100644
--- a/modules/reallocarray
+++ b/modules/reallocarray
@@ -26,7 +26,7 @@ Include:
<stdlib.h>
License:
-LGPL
+LGPLv2+
Maintainer:
all