[Bug 1538] New: improve SSP detection
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Wed Nov 19 15:00:34 EST 2008
https://bugzilla.mindrot.org/show_bug.cgi?id=1538
Summary: improve SSP detection
Product: Portable OpenSSH
Version: 5.1p1
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Build system
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: vapier at gentoo.org
the SSP test compiles this simple code:
#include <stdlib.h>
int main(void){exit(0);}
while that works fine for testing the -fstack-protector-all flag, it's
insufficient for testing the -fstack-protector flag. since it doesnt
use any stack, no SSP markings will be added. so if the toolchain does
not fully support SSP, the configure script will add the flag but the
build will ultimately fail.
a better test case seems to be:
#include <stdio.h>
int main(void){char foo[1024];return sprintf(foo, "moo cow");}
patch:
http://sources.gentoo.org/net-misc/openssh/files/openssh-5.1_p1-better-ssp-check.patch?rev=1.1
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list