This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/20628] New: mallinfo should saturate, not overflow
- From: "dj at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 22 Sep 2016 00:27:25 +0000
- Subject: [Bug malloc/20628] New: mallinfo should saturate, not overflow
- Auto-submitted: auto-generated
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.