This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11215] New: misc/hsearch_r.c (hcreate_r): set ENOMEM if allocation fails
- From: "khoroshilov at linuxtesting dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 23 Jan 2010 22:30:07 -0000
- Subject: [Bug libc/11215] New: misc/hsearch_r.c (hcreate_r): set ENOMEM if allocation fails
- Reply-to: sourceware-bugzilla at sourceware dot org
According to POSIX hcreate() function may fail if:
[ENOMEM]
Insufficient storage space is available.
But glibc implementation just return 0 if allocation fails. It would be more
consistent to set errno to ENOMEM in this case as well.
--
Summary: misc/hsearch_r.c (hcreate_r): set ENOMEM if allocation
fails
Product: glibc
Version: 2.12
Status: NEW
Severity: enhancement
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: khoroshilov at linuxtesting dot org
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11215
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.