This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/22611] malloc might succeed and set errno to ENOMEM in case of heap allocation failure
- From: "aurelien at aurel32 dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 15 Dec 2017 09:28:52 +0000
- Subject: [Bug malloc/22611] malloc might succeed and set errno to ENOMEM in case of heap allocation failure
- Auto-submitted: auto-generated
- References: <bug-22611-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22611
--- Comment #5 from Aurelien Jarno <aurelien at aurel32 dot net> ---
(In reply to Carlos O'Donell from comment #2)
> Can you create a test case that adds an mmap just after the brk region, this
> should cause a failure to happen. The test case will need to call brk to
> figure out *where* the current break is, then add some space, then place an
> mmap there, and see if the expanding sbrk fails.
Thanks for the hint. I have added a testcase that exhibit the issue on x86-64
and probably other architectures.
--
You are receiving this mail because:
You are on the CC list for the bug.