summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-01 22:41:36 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-02 22:08:57 +0300
commitf5ed898d4dc394af26fc1f0545861794331bd985 (patch)
tree97163877149cc8906d76122f857cccad5b9a6970 /configure
parent75fb4a2dc483b0b66bb89200c0507827828dd09d (diff)
downloadhercules-f5ed898d4dc394af26fc1f0545861794331bd985.tar.gz
hercules-f5ed898d4dc394af26fc1f0545861794331bd985.tar.bz2
hercules-f5ed898d4dc394af26fc1f0545861794331bd985.tar.xz
hercules-f5ed898d4dc394af26fc1f0545861794331bd985.zip
Fix out of bound access if skill level is 0.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure28
1 files changed, 20 insertions, 8 deletions
diff --git a/configure b/configure
index 6a798c713..1db181e46 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in bc3bdec.
+# From configure.in 5c1d773.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69.
#
@@ -1357,8 +1357,7 @@ Optional Features:
is enabled by default)
--enable-static Enables or Disables Statick Linking (STATIC is
disabled by default)
- --enable-sanitize Enables or Disables Sanitize Address Checking
- (SANITIZE is disabled by default)
+ --enable-sanitize[=ARG] Sanitize: yes, no, full)
--disable-renewal Disable Ragnarok Renewal support (override settings
in src/config/renewal.h)
@@ -3694,6 +3693,7 @@ if test "${enable_sanitize+set}" = set; then :
case $enableval in
"no");;
"yes");;
+ "full");;
*) as_fn_error $? "invalid argument --enable-sanitize=$disableval... stopping" "$LINENO" 5;;
esac
@@ -5059,15 +5059,26 @@ fi
# sanitize Support test
#
if test "$enable_sanitize" != "no" ; then
+ if test "$enable_sanitize" == "full" ; then
+ # skipped because server have multiply issues -fsanitize=alignment
+ SAN="-fsanitize=address \
+-fsanitize=shift -fsanitize=integer-divide-by-zero -fsanitize=unreachable \
+-fsanitize=vla-bound -fsanitize=null -fsanitize=return \
+-fsanitize=signed-integer-overflow -fsanitize=bounds \
+-fsanitize=object-size -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow \
+-fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool \
+-fsanitize=enum -fsanitize=vptr"
+ else
+ SAN="-fsanitize=address"
+ fi
OLD_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -fsanitize=address"
-
+ CFLAGS="$CFLAGS $SAN"
OLD_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS -fsanitize=address"
+ LDFLAGS="$LDFLAGS $SAN"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fsanitize=address" >&5
-$as_echo_n "checking whether $CC supports -fsanitize=address... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $SAN" >&5
+$as_echo_n "checking whether $CC supports $SAN... " >&6; }
if test "$cross_compiling" = yes; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: guessing no" >&5
@@ -5100,6 +5111,7 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
+
fi