Hash :
d4e52e5e
Author :
Date :
2021-04-18T16:53:11
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.
Description:
A set of macros to make calls to alloc/calloc/realloc safer.
Files:
lib/safe-alloc.h
lib/safe-alloc.c
m4/safe-alloc.m4
Depends-on:
calloc-gnu
reallocarray
configure.ac:
gl_SAFE_ALLOC
Makefile.am:
lib_SOURCES += safe-alloc.c
Include:
"safe-alloc.h"
License:
LGPLv2+
Maintainer:
David Lutterkort