diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-03-03 14:55:19 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-03-07 00:06:24 +0000 |
commit | 4ece1c842a08c11c1f84b95355801d41cd8435b1 (patch) | |
tree | d6f8fb17a745b9635a837c78046ac325b0505413 /.gitignore | |
parent | 392eb1cd5f2bdb186f0ff7f51abc4dd05ec13709 (diff) |
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: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions