diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2015-03-21 08:42:19 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2015-04-21 16:57:08 -0700 |
commit | 0887c9463fc7d36d7874e7f978df4109542f7307 (patch) | |
tree | abaa25cfa8717e02a0b3998f811dde98b7d610f4 /include/xorg-server.h.in | |
parent | b96dc999968320ad6322b50c79d847efcfcd02b2 (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>
Acked-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'include/xorg-server.h.in')
-rw-r--r-- | include/xorg-server.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/xorg-server.h.in b/include/xorg-server.h.in index 4cb94875c..3152dbd68 100644 --- a/include/xorg-server.h.in +++ b/include/xorg-server.h.in @@ -47,6 +47,9 @@ /* Define to 1 if you have the `ffs' function. */ #undef HAVE_FFS +/* Define to 1 if you have the `reallocarray' function. */ +#undef HAVE_REALLOCARRAY + /* Define to 1 if you have the `strcasecmp' function. */ #undef HAVE_STRCASECMP |