[PATCH 1/2] Replace check_mul_overflow_size_t with INT_MULTIPLY_WRAPV
DJ Delorie
dj@redhat.com
Sat Dec 22 06:17:00 GMT 2018
Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:
> size_t size;
> - bool overflow = check_mul_overflow_size_t (element_size, count, &size);
> + bool overflow = INT_MULTIPLY_WRAPV (element_size, count, &size);
The docs for INT_MULTIPLY_WRAPV says the result type must be signed, but
size_t is NOT signed (throughout).
More information about the Libc-alpha
mailing list