This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug locale/22390] Rare memory corruption in localedef related to malloc
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sun, 05 Nov 2017 14:52:52 +0000
- Subject: [Bug locale/22390] Rare memory corruption in localedef related to malloc
- Auto-submitted: auto-generated
- References: <bug-22390-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22390
--- Comment #11 from Florian Weimer <fweimer at redhat dot com> ---
Created attachment 10574
--> https://sourceware.org/bugzilla/attachment.cgi?id=10574&action=edit
reproducer.c
I'm attaching a simplified reproducer. It needs to be run with an explicit
linker invocation, so that the heap is placed above ld.so.
The reproducer is still probabilistic. The increment might be so large that
the second sbrk call fails. But if the sbrk succeeds, the assignment at the
end will always segfault when running under a kernel which has the bug.
--
You are receiving this mail because:
You are on the CC list for the bug.