[PATCH v2] Add reallocarray function.

Paul Eggert eggert@cs.ucla.edu
Mon Apr 17 14:34:00 GMT 2017


On 04/17/2017 07:32 AM, Florian Weimer wrote:
> * Dennis Wölfing:
>
>> +static inline bool
>> +check_mul_overflow (size_t l, size_t r, INTERNAL_SIZE_T *result)
>> +{
>> +#if __GNUC__ >= 5
>> +  return __builtin_mul_overflow (l, r, result);
> This is not correct for size_t != INTERNAL_SIZE_T.

Why not? Could you give an example?



More information about the Libc-alpha mailing list