Jump to content

User talk:86.26.173.230

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

dev:~/android $ cat bof-test1.c

  1. include <stdio.h>
  2. include <string.h>

int main(int argc, char *argv[]) {char buf[256];

strcpy(buf, argv[1]);
return 0;

} dev:~/android $ gcc -D_FORTIFY_SOURCE=1 -O2 -fno-stack-protector -o \ test bof-test.c dev:~/android $ ./test `ruby -e 'puts "A" * 512'`

      • buffer overflow detected ***: ./test terminated
= Backtrace: ===
[edit]

...