diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2015-06-04 23:18:23 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2018-12-08 10:04:13 -0800 |
commit | bcf7b5aa06c23aee00af7999b58cb96a8571ac42 (patch) | |
tree | 9edf012cc35ce19c8ff6bb4189f85e827c55d937 /configure.ac | |
parent | 9bdfe9c9af11d77d66e5ff651e82b20e695cb460 (diff) |
Import reallocarray() from OpenBSD
Wrapper for realloc() that checks for overflow when multiplying
arguments together, so we don't have to add overflow checks to
every single call. For documentation on usage, see:
http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man3/calloc.3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 30908453..5a3c7ce9 100644 --- a/configure.ac +++ b/configure.ac @@ -145,6 +145,7 @@ AC_CHECK_HEADERS([sys/select.h]) # Checks for library functions. AC_CHECK_FUNCS([strtol seteuid]) +AC_REPLACE_FUNCS([reallocarray]) # Used in lcFile.c (see also --enable-xlocaledir settings below) XLOCALEDIR_IS_SAFE="no" AC_CHECK_DECL([issetugid]) |