Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ssp(3) problem?



In article <20151126114027.GW12462%danbala.tuwien.ac.at@localhost>,
Thomas Klausner  <wiz%NetBSD.org@localhost> wrote:
>Hi!
>
>A user tried following the ssp man page and got unexpected results.
>I'd like to know if the man page is wrong or implementation.
>
>Here's his translated message:
>
>Take any program using stdio.h, say
>
>#include <stdlib.h>
>#include <stdio.h>
>
>as the only lines, and use gcc as described in ssp(3):
>
>gcc -I/usr/include/ssp -D_FORTIFY_SOURCE=2 file.c

The man page is wrong. Never do -I/usr/include/ssp. Definining
-D_FORTIFY_SOURCE=<0|1|2> is the only thing you need to do.

christos



Home | Main Index | Thread Index | Old Index