This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/21556] New: malloc_stats printing size_t fields as unsigned int
- From: "ashishsangwan2 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 08 Jun 2017 07:17:54 +0000
- Subject: [Bug malloc/21556] New: malloc_stats printing size_t fields as unsigned int
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=21556
Bug ID: 21556
Summary: malloc_stats printing size_t fields as unsigned int
Product: glibc
Version: unspecified
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: malloc
Assignee: unassigned at sourceware dot org
Reporter: ashishsangwan2 at gmail dot com
Target Milestone: ---
#define MALLINFO_FIELD_TYPE size_t
The mallinfo struct has all its variable as size_t type, but while printing
stats in __malloc_stats it is typecast to unsigned int which is printing
incorrect values because of overflow.
--
You are receiving this mail because:
You are on the CC list for the bug.