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/16112] New: malloc_info reads uninitialized memory


https://sourceware.org/bugzilla/show_bug.cgi?id=16112

            Bug ID: 16112
           Summary: malloc_info reads uninitialized memory
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: malloc
          Assignee: unassigned at sourceware dot org
          Reporter: neleai at seznam dot cz

malloc_info could produce following entry:

 <size from="32785" to="32785" total="32785" count="1"/>
 <size from="2512305" to="2512305" total="2512305" count="1"/>
 <unsorted from="8993" to="8386112020140800621"
 total="8316306148830692230" count="7526394837682317685"/>
 </sizes>

A problem here is that we increment sizes[NFASTBINS].count but do not
initialize it to zero. Patch follows.

-- 
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]