Full Disclosure mailing list archives

Re: ShortNotes : Stack Smashing with GCC4


From: "Guasconi Vincent" <tyoptyop () gmail com>
Date: Fri, 20 Apr 2007 20:37:37 +0200

On 4/20/07, Marcus Meissner <meissner () suse de> wrote:
The classic example (Gera's Law):

[File : abo1.c ]

After fixing your code (adding a missing #include <string.h>)

Wohohoh!

gcc -O2 -fstack-protector xx.c -o xx
./xx `perl -e "print 'a' x 1024;"`
*** stack smashing detected ***: ./xx terminated


Perhaps you should read the manpages of the compiler first to find the
correct options to enable.

Ciao, Marcus

He have never talk about PP.

Ciao.

--
Guasconi Vincent
Etudiant.
http://altmylife.blogspot.com

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/


Current thread: