This is the mail archive of the libc-alpha@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] | |
#include <stdio.h>
#include <string.h>
int main() {
char foo[77777];
memset(foo,0,sizeof(foo));
memset(foo,'a',77770);
char bar[77777];
memset(bar,0,sizeof(bar));
memset(bar,'a',27770);
bar[10000] = 'b';
printf("%p\n", strstr(foo, bar));
}Attachment:
strstr.patch
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |