This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/11215] New: misc/hsearch_r.c (hcreate_r): set ENOMEM if allocation fails


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]