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/15380] New: initstate() fails to retun NULL if size < 8


http://sourceware.org/bugzilla/show_bug.cgi?id=15380

             Bug #: 15380
           Summary: initstate() fails to retun NULL if size < 8
           Product: glibc
           Version: 2.17
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: unassigned@sourceware.org
        ReportedBy: mtk.manpages@gmail.com
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


POSIX.1-2001 says:

    RETURN VALUE
       If initstate() is called with size less than 8, it shall return
       NULL.

glibc sets errno to EINVAL for this case, but does not return NULL, thus
violating the standard.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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