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/14716] memmem crash


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]