* src/csplit.c (load_buffer):
* src/pinky.c (create_fullname):
Use intprops-based checks rather than xalloc_oversized,
since Gnulib xalloc.h no longer includes xalloc-oversized.h.
-Subproject commit e54b645fc6b8422562327443bda575c65d931fbd
+Subproject commit 354b9691accd00a531358b652689ce7f580fbe54
if (lines_found || have_read_eof)
break;
- if (xalloc_oversized (2, b->bytes_alloc))
+ if (INT_MULTIPLY_WRAPV (b->bytes_alloc, 2, &bytes_wanted))
xalloc_die ();
- bytes_wanted = 2 * b->bytes_alloc;
free_buffer (b);
free (b);
}
if (ampersands != 0)
{
size_t ulen = strlen (user_name);
- size_t product = ampersands * ulen;
- rsize += product - ampersands;
- if (xalloc_oversized (ulen, ampersands) || rsize < product)
+ size_t product;
+ if (INT_MULTIPLY_WRAPV (ulen, ampersands - 1, &product)
+ || INT_ADD_WRAPV (rsize, product, &rsize))
xalloc_die ();
}