Code:  checked_xcalloc (size_t num, size_t size)
 {
    alloc_limit_assert ("checked_xcalloc", (num *size));
     return xcalloc (num, size);
 }

Commit Message: Fix integer overflows and harden memory allocator.
CWE ID: CWE-190
 checked_xcalloc (size_t num, size_t size)
 {
    size_t res;
    if (check_mul_overflow(num, size, &res))
        abort();

    alloc_limit_assert ("checked_xcalloc", (res));
     return xcalloc (num, size);
 }
