[PATCH] Use size_t for mallinfo fields.

Andreas Schwab schwab@linux-m68k.org
Tue Jul 7 12:17:29 GMT 2020


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.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."


More information about the Libc-alpha mailing list