[test suite] use -A mode for AFL fuzzing, make sure fwknopd does not init digest cache in -A mode
This commit is contained in:
@@ -347,6 +347,9 @@ static void init_digest_cache(fko_srv_options_t *opts)
|
||||
{
|
||||
int rp_cache_count;
|
||||
|
||||
if(opts->afl_fuzzing)
|
||||
return;
|
||||
|
||||
if(strncasecmp(opts->config[CONF_ENABLE_DIGEST_PERSISTENCE], "Y", 1) == 0)
|
||||
{
|
||||
rp_cache_count = replay_cache_init(opts);
|
||||
|
||||
@@ -11,6 +11,6 @@ LD_LIBRARY_PATH=../../lib/.libs ../../server/.libs/fwknopd \
|
||||
-c $FWKNOPD_CONF_FILE \
|
||||
-a ../conf/default_access.conf \
|
||||
-O ../conf/override_no_digest_tracking_fwknopd.conf \
|
||||
-f -t --exit-parse-config -v -v -v -r `pwd`/run
|
||||
-A -f -t --exit-parse-config -v -v -v -r `pwd`/run
|
||||
|
||||
exit $?
|
||||
|
||||
@@ -36,6 +36,6 @@ LD_LIBRARY_PATH=$LIB_DIR afl-fuzz \
|
||||
-c ../conf/ipt_snat_fwknopd.conf \
|
||||
-a $OUT_DIR/afl_access.conf \
|
||||
-O ../conf/override_no_digest_tracking_fwknopd.conf \
|
||||
-f -t --exit-parse-config -v -v -v -r `pwd`/run
|
||||
-A -f -t --exit-parse-config -v -v -v -r `pwd`/run
|
||||
|
||||
exit $?
|
||||
|
||||
@@ -31,9 +31,9 @@ fi
|
||||
|
||||
LD_LIBRARY_PATH=$LIB_DIR afl-fuzz -T $BANNER -t 1000 -i $IN_DIR \
|
||||
-o $OUT_DIR -f $OUT_DIR/afl_fwknopd.conf $SERVER \
|
||||
-c $OUT_DIR/afl_fwknopd.conf \
|
||||
-a $OUT_DIR/afl_access.conf \
|
||||
-O ../conf/override_no_digest_tracking_fwknopd.conf \
|
||||
-f -t --exit-parse-config -v -v -v -r `pwd`/run
|
||||
-a ../conf/default_access.conf \
|
||||
-c $OUT_DIR/afl_fwknopd.conf \
|
||||
-A -f -t --exit-parse-config -v -v -v -r `pwd`/run
|
||||
|
||||
exit $?
|
||||
|
||||
Reference in New Issue
Block a user