aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2010-09-02 18:02:06 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2010-09-02 18:02:06 +0000
commit7d20440ff0f5c8fc1510198eda81761b273e2a67 (patch)
treeae3163d422effdd1ba05613492f197e462c37369 /tools
parent8ffbb8ade834c899790c808e479cb471680c16b5 (diff)
Introduce 2 new environment variables: WIRESHARK_EP_VERIFY_POINTERS and
WIRESHARK_SE_VERIFY_POINTERS that control whether or not we verify if a given pointer is ep_ or se_ allocated, respectively. Turn the behavior off by default for speed reasons (the speed difference isn't huge, but...). Turn the behavior on when fuzz testing. Document these two new variables in the man pages. svn path=/trunk/; revision=34046
Diffstat (limited to 'tools')
-rwxr-xr-xtools/fuzz-test.sh2
-rwxr-xr-xtools/test-fuzzed-cap.sh2
2 files changed, 4 insertions, 0 deletions
diff --git a/tools/fuzz-test.sh b/tools/fuzz-test.sh
index 257c789d8e..323c8d5698 100755
--- a/tools/fuzz-test.sh
+++ b/tools/fuzz-test.sh
@@ -178,6 +178,8 @@ while [ $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 ] ; do
export WIRESHARK_DEBUG_SCRUB_MEMORY=
export WIRESHARK_DEBUG_SE_USE_CANARY=
+ export WIRESHARK_EP_VERIFY_POINTERS=
+ export WIRESHARK_SE_VERIFY_POINTERS=
export MALLOC_CHECK_=3
"$TSHARK" $TSHARK_ARGS $TMP_DIR/$TMP_FILE \
> /dev/null 2> $TMP_DIR/$ERR_FILE
diff --git a/tools/test-fuzzed-cap.sh b/tools/test-fuzzed-cap.sh
index ec7a42b684..091c875e9b 100755
--- a/tools/test-fuzzed-cap.sh
+++ b/tools/test-fuzzed-cap.sh
@@ -35,6 +35,8 @@ fi
export WIRESHARK_DEBUG_SCRUB_MEMORY=
export WIRESHARK_DEBUG_SE_USE_CANARY=
+export WIRESHARK_EP_VERIFY_POINTERS=
+export WIRESHARK_SE_VERIFY_POINTERS=
export MALLOC_CHECK_=3
$BIN_DIR/tshark -nVxr $1 > /dev/null