public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/11181] New: Possible segfault if mmap fails in _nl_load_locale
@ 2010-01-18 23:48 ianw at vmware dot com
  2010-01-22 21:12 ` [Bug libc/11181] " ianw at vmware dot com
  0 siblings, 1 reply; 2+ messages in thread
From: ianw at vmware dot com @ 2010-01-18 23:48 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug libc/11181] Possible segfault if mmap fails in _nl_load_locale
  2010-01-18 23:48 [Bug libc/11181] New: Possible segfault if mmap fails in _nl_load_locale ianw at vmware dot com
@ 2010-01-22 21:12 ` ianw at vmware dot com
  0 siblings, 0 replies; 2+ messages in thread
From: ianw at vmware dot com @ 2010-01-22 21:12 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From ianw at vmware dot com  2010-01-22 21:12 -------


*** This bug has been marked as a duplicate of 11200 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-22 21:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-18 23:48 [Bug libc/11181] New: Possible segfault if mmap fails in _nl_load_locale ianw at vmware dot com
2010-01-22 21:12 ` [Bug libc/11181] " ianw at vmware dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).