diff options
author | Andy Isaacson <adi@hexapodia.org> | 2010-05-07 12:22:44 -0700 |
---|---|---|
committer | Andy Isaacson <adi@hexapodia.org> | 2010-05-07 12:30:47 -0700 |
commit | 6751899fe1c85ad7fdddc9fea74387098ecab015 (patch) | |
tree | 9091882302176bfeca8f6215d36ce118415e86a5 /configure.in | |
parent | 8ba00e4305fe87c540c452271bc6f5c461738777 (diff) | |
download | tor-6751899fe1c85ad7fdddc9fea74387098ecab015.tar.gz tor-6751899fe1c85ad7fdddc9fea74387098ecab015.zip |
use ssp-buffer-size=1 to avoid Werror failures
Build on Ubuntu 10.04 64-bit was failing:
util.c: In function ‘parse_http_time’:
util.c:1370: error: not protecting function: no buffer at least 8 bytes long
We don't want to lose -Werror, and we don't care too much about the
added overhead of protecting even small buffers, so let's simply turn on
SSP for all buffers.
Thanks to Jacob Appelbaum for the pointer and SwissTorExit for the
original report.
Signed-off-by: Andy Isaacson <adi@hexapodia.org>
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 07b3ff423b..46c3c1944e 100644 --- a/configure.in +++ b/configure.in @@ -885,7 +885,7 @@ if test x$enable_gcc_warnings = xyes || test x$enable_gcc_warnings_advisory = xy # These warnings break gcc 4.0.2 and work on gcc 4.2 # XXXX020 Use -fstack-protector. # XXXX020 See if any of these work with earlier versions. - CFLAGS="$CFLAGS -Waddress -Wmissing-noreturn -Wnormalized=id -Woverride-init -Wstrict-overflow=1" + CFLAGS="$CFLAGS -Waddress -Wmissing-noreturn -Wnormalized=id -Woverride-init -Wstrict-overflow=1 --param ssp-buffer-size=1" # We used to use -Wstrict-overflow=5, but that breaks us heavily under 4.3. fi |