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

Add XtReallocArray() for overflow checking of multiplied args


Uses reallocarray() if available, otherwise checks for overflow itself,
if overflow is possible (i.e. in ILP32 & ILP64 environments, but not LP64
with 32-bit ints).

Includes unit tests and XtMallocArray() helper macro.

Signed-off-by: default avatarAlan Coopersmith <alan.coopersmith@oracle.com>
parent 392eb1cd
1 merge request!61Add XtReallocArray() for overflow checking of multiplied args
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