Bugzilla – Attachment 1580 Details for
Bug 1538
improve SSP detection
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
simplified diff
ssh-stack-protect.diff (text/plain), 1.39 KB, created by
Damien Miller
on 2008-11-19 17:11:39 AEDT
(
hide
)
Description:
simplified diff
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2008-11-19 17:11:39 AEDT
Size:
1.39 KB
patch
obsolete
>Index: configure.ac >=================================================================== >RCS file: /var/cvs/openssh/configure.ac,v >retrieving revision 1.409 >diff -u -p -r1.409 configure.ac >--- configure.ac 9 Jul 2008 11:07:19 -0000 1.409 >+++ configure.ac 19 Nov 2008 06:10:58 -0000 >@@ -126,7 +126,7 @@ int main(void){char b[10]; memset(b, 0, > > # -fstack-protector-all doesn't always work for some GCC versions > # and/or platforms, so we test if we can. If it's not supported >- # on a give platform gcc will emit a warning so we use -Werror. >+ # on a given platform gcc will emit a warning so we use -Werror. > if test "x$use_stack_protector" = "x1"; then > for t in -fstack-protector-all -fstack-protector; do > AC_MSG_CHECKING(if $CC supports $t) >@@ -136,8 +136,8 @@ int main(void){char b[10]; memset(b, 0, > LDFLAGS="$LDFLAGS $t -Werror" > AC_LINK_IFELSE( > [AC_LANG_SOURCE([ >-#include <stdlib.h> >-int main(void){return 0;} >+#include <stdio.h> >+int main(void){char x[[256]]; snprintf(x, sizeof(x), "XXX"); return 0;} > ])], > [ AC_MSG_RESULT(yes) > CFLAGS="$saved_CFLAGS $t" >@@ -145,8 +145,8 @@ int main(void){return 0;} > AC_MSG_CHECKING(if $t works) > AC_RUN_IFELSE( > [AC_LANG_SOURCE([ >-#include <stdlib.h> >-int main(void){exit(0);} >+#include <stdio.h> >+int main(void){char x[[256]]; snprintf(x, sizeof(x), "XXX"); return 0;} > ])], > [ AC_MSG_RESULT(yes) > break ],
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1538
:
1579
| 1580