Skip to content
Snippets Groups Projects
Commit 621f61f7 authored by Alan Coopersmith's avatar Alan Coopersmith
Browse files

Import reallocarray() from libX11 (originally 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: default avatarAlan Coopersmith <alan.coopersmith@oracle.com>
parent 05ee4656
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment