[PATCH] Use size_t for mallinfo fields.
Martin Liška
mliska@suse.cz
Tue Jul 7 13:07:59 GMT 2020
On 7/7/20 2:17 PM, Andreas Schwab wrote:
> On Jul 07 2020, Martin Liška wrote:
>
>> The current int type can easily overflow for allocation of more
>> than 4GB.
>>
>> The following patch changes that to size_t. I guess I need to adjust
>> the API version of the function, right?
>
> Not only that, it breaks the ABI of mallinfo.
Sure, so what options do I have? I'm new to glibc so a hint would be appreciated.
Thanks,
Martin
>
> Andreas.
>
More information about the Libc-alpha
mailing list