This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11181] New: Possible segfault if mmap fails in _nl_load_locale
- From: "ianw at vmware dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 18 Jan 2010 23:48:03 -0000
- Subject: [Bug libc/11181] New: Possible segfault if mmap fails in _nl_load_locale
- Reply-to: sourceware-bugzilla at sourceware dot org
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.