Hello,
attached patch fixes SIGSEGV with 64-bit userspace. The memmem is implicit with int but it get signed extended when cast to rt. Cannot include correct headers because of the kernel one. I also fixed the print output (it should not hurt).
Signed-off-by: Rudolf Marek r.marek@assembler.cz
Thanks, Rudolf
Hi Rudolf,
On Fri, Apr 06, 2007 at 12:10:22AM +0200, Rudolf Marek wrote:
+void *memmem(const void *haystack, size_t haystacklen,
const void *needle, size_t needlelen);
Shouldn't this just be pulled from #include <string.h> ?
Or do we want to duplicate it because it needs _GNU_SOURCE ?
//Peter
Peter Stuge wrote:
Hi Rudolf,
On Fri, Apr 06, 2007 at 12:10:22AM +0200, Rudolf Marek wrote:
+void *memmem(const void *haystack, size_t haystacklen,
const void *needle, size_t needlelen);
Shouldn't this just be pulled from #include <string.h> ?
Or do we want to duplicate it because it needs _GNU_SOURCE ?
And if you define it it will complain even more :/ because of the included kernel stuff you get some redefines. This fix is not ideal but works fine.
Rudolf