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/20628] New: mallinfo should saturate, not overflow


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

            Bug ID: 20628
           Summary: mallinfo should saturate, not overflow
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: malloc
          Assignee: unassigned at sourceware dot org
          Reporter: dj at redhat dot com
  Target Milestone: ---

Created attachment 9518
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9518&action=edit
patch to make mallinfo() saturate instead of overflow its fields

Related to 3973 and 5711, this patch does not attempt to change the ABI for
mallinfo() but instead changes the "lies to the user" state from "overflowing
add" to "saturated add" - at least the values will be "very large" instead of
potentially negative, making it much easier to detect when the data becomes
invalid.

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