Re: ProPolice/SSP in 7.0

看板FB_security作者時間18年前 (2007/12/30 22:55), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串12/16 (看更多)
Anders Hanssen <anders@rethink.no> writes: > A look at the generated code confirms it does not use ssp for overrun() > > void > overrun(const char *str) > { > int x; > char a[4]; > int y; > > strcpy(a, str); > printf("hi"); > } > > # gcc -S -fstack-protector test.c Use -fstack-protector-all instead. > Anyway, I don't know why gcc fail to see that overrun() needs > protection. Because you didn't RTFM... DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no _______________________________________________ freebsd-security@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-security To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"
文章代碼(AID): #17Tx5v00 (FB_security)
討論串 (同標題文章)
文章代碼(AID): #17Tx5v00 (FB_security)