http://people.redhat.com/drepper/Defensive-slides.pdf

This paper describes a few GCC and Glibc features, one of which is the strcpy 
wrapper. It has an example program:

#include <string.h>
int main(int argc, char *argv[]) {
  char buf[10];
  strcpy(buf, argv[1]);
  return 0;
}

But when I build this with gcc-4.1.1 and glibc-2.4 it does not "buffer 
overflow detected", it "Segmentation fault". Perhaps this is a Fedora 
feature?

robert

Attachment: pgpTmaG1l9spd.pgp
Description: PGP signature

-- 
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to