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:30:25 +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 #6 from Aurelien Jarno <aurelien at aurel32 dot net> ---
(In reply to Florian Weimer from comment #3)
> (In reply to Aurelien Jarno from comment #0)
> > tst-realloc tests, among others things that malloc and friends to not set
> > errno to ENOMEM in case of successful memory allocation. This test always
> > fail on sparc64 with "Error: errno is set but should not be".
>
> Isn't this test invalid?
>
Do you mean this is correct to set ENOMEM even when malloc is successful?
--
You are receiving this mail because:
You are on the CC list for the bug.