Turn on memory scrubbing when fuzz testing.
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 16 Apr 2010 00:56:11 +0000 (00:56 +0000)
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 16 Apr 2010 00:56:11 +0000 (00:56 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32487 f5534014-38df-0310-8fa8-9805f1628bb7

tools/fuzz-test.sh
tools/test-fuzzed-cap.sh

index 1e5db618454311f7530d6fc428b593e973f34e82..fd4baa74e042057dc47d1a779efa72fc5231f96b 100755 (executable)
@@ -165,7 +165,9 @@ while [ $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 ] ; do
         fi
     fi
 
-    WIRESHARK_DEBUG_SE_USE_CANARY= "$TSHARK" $TSHARK_ARGS $TMP_DIR/$TMP_FILE \
+    export WIRESHARK_DEBUG_SCRUB_MEMORY=1
+    export WIRESHARK_DEBUG_SE_USE_CANARY=1
+    "$TSHARK" $TSHARK_ARGS $TMP_DIR/$TMP_FILE \
         > /dev/null 2> $TMP_DIR/$ERR_FILE
     RETVAL=$?
     # Uncomment the next two lines to enable dissector bug
index 1d8166f8193bf0d2604f18036ee23b40a86fe2de..3abb874b795701262b03b2f4192f84c358abbac4 100755 (executable)
@@ -26,4 +26,7 @@ ulimit -S -t $MAX_CPU_TIME -v $MAX_VMEM
 # Allow core files to be generated
 ulimit -c unlimited
 
-WIRESHARK_DEBUG_SE_USE_CANARY= ./tshark -nVxr $1 > /dev/null
+export WIRESHARK_DEBUG_SCRUB_MEMORY=1
+export WIRESHARK_DEBUG_SE_USE_CANARY=1
+
+./tshark -nVxr $1 > /dev/null