[Bug malloc/21556] malloc_stats printing size_t fields as unsigned int
mail at nh2 dot me
sourceware-bugzilla@sourceware.org
Sat Dec 22 19:40:00 GMT 2018
https://sourceware.org/bugzilla/show_bug.cgi?id=21556
mail at nh2 dot me changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mail at nh2 dot me
--- Comment #1 from mail at nh2 dot me ---
> #define MALLINFO_FIELD_TYPE size_t
> The mallinfo struct has all its variable as size_t type
I am confused by this statement:
While malloc_stats() is certainly bugged by integer overflow (and that is in
particular despite `man 3 mallinfo` recommending it as non-overflowing
alternative), there doesn't seem to be a `MALLINFO_FIELD_TYPE` in glibc's
source code or git history, and the mallinfo struct has `int` inside.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list