This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug malloc/21556] New: malloc_stats printing size_t fields as unsigned int


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]