This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/14716] memmem crash
- From: "hjl.tools at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Sat, 13 Oct 2012 21:47:25 +0000
- Subject: [Bug libc/14716] memmem crash
- Auto-submitted: auto-generated
- References: <bug-14716-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14716
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> 2012-10-13 21:47:25 UTC ---
You can use a memmem wrapper to extract a testcase:
1. Copy simple_memmem from string/test-memmem.c in glibc.
2. Write a function to dump memmem input into a C source code, including
address values.
3. Call simple_memmem to get correct result.
4. Compare result from memmem against simple_memmem. If it fails,
call the dumper to generate the testcase.
4. Link GDB against the memmem wrapper.
You can generate a testcase by
1. Dumper called on wrong result from memmem.
2. Run dumper by hand inside GDB when GDB segfaults
--
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.