This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/20628] 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: Fri, 23 Sep 2016 18:19:27 +0000
- Subject: [Bug malloc/20628] mallinfo should saturate, not overflow
- Auto-submitted: auto-generated
- References: <bug-20628-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20628
--- Comment #1 from dj at redhat dot com <dj at redhat dot com> ---
Created attachment 9520
--> https://sourceware.org/bugzilla/attachment.cgi?id=9520&action=edit
Test case which demonstrates the problem
This program demonstrates the difference between the old (overflow) and new
(saturating) behaviors:
$ ./mallinfo-overflow-demo
Malloc stats...
arena 0x00000000 0
...
uordblks 0x00000000 0
Malloc stats...
arena 0x468b0000 1183514624
...
uordblks 0x468acf00 1183502080
...
$ ~/tools/upstream/glibc.mallinfo.build/testrun.sh ./mallinfo-overflow-demo
Malloc stats...
arena 0x00000000 0
...
uordblks 0x00000000 0
...
Malloc stats...
arena 0x7fffffff 2147483647
...
uordblks 0x7fffffff 2147483647
...
--
You are receiving this mail because:
You are on the CC list for the bug.