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/11181] New: Possible segfault if mmap fails in _nl_load_locale


In locale/loadlocale.c:_nl_load_locale (line 223) if the mmap fails 'filedata' is 
MAP_FAILED, but later only a possible malloc failure is checked for;

  if (__builtin_expect (filedata == NULL, 0))
    /* We failed to map or read the data.  */
    return;

That either needs to also include a MAP_FAILED check or some other way to catch 
the possible mmap failure.

-- 
           Summary: Possible segfault if mmap fails in _nl_load_locale
           Product: glibc
           Version: 2.12
            Status: NEW
          Severity: normal
          Priority: P3
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: ianw at vmware dot com
                CC: glibc-bugs at sources dot redhat dot com


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

------- 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]