Turn on memory scrubbing when fuzz testing.
[obnox/wireshark/wip.git] / tools / fuzz-test.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