[PATCH] Use size_t for mallinfo fields.
Martin Liška
mliska@suse.cz
Tue Jul 7 12:00:02 GMT 2020
Hi.
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?
Thanks,
Martin
---
malloc/malloc.h | 20 ++++++++++----------
manual/memory.texi | 22 +++++++++++-----------
2 files changed, 21 insertions(+), 21 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-size_t-for-mallinfo-fields.patch
Type: text/x-patch
Size: 3018 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20200707/3cd65da8/attachment.bin>
More information about the Libc-alpha
mailing list