diff options
author | Gerald Combs <gerald@wireshark.org> | 2016-02-03 13:15:57 -0800 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-02-04 05:16:47 +0000 |
commit | 29b0adac8211b3da2d5c37b8fcacf9a631ba95ab (patch) | |
tree | c862bec8f9a7d8fdb3d4b84f7cbd624c23acb7c5 /tools | |
parent | d5c1449d1b7ae0a2a04e401f9015a516ba7201f9 (diff) |
fuzz-test: Print the memory limit if ASan is enabled.
Update the 'ulimit -v' FAQ URL while we're here.
Change-Id: I0e1b007295bf609d7a585087b00c97eae01501c2
Reviewed-on: https://code.wireshark.org/review/13696
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/fuzz-test.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/fuzz-test.sh b/tools/fuzz-test.sh index d0c1277e36..6ef9cebc8d 100755 --- a/tools/fuzz-test.sh +++ b/tools/fuzz-test.sh @@ -204,10 +204,13 @@ while [ \( $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 \) -a $DONE -ne 1 ] ; do ulimit -S -t $MAX_CPU_TIME -s $MAX_STACK ulimit -c unlimited - # Don't enable ulimit -v when use ASAN see - # https://code.google.com/p/address-sanitizer/wiki/AddressSanitizer#ulimit_-v + # Don't enable ulimit -v when using ASAN. See + # https://github.com/google/sanitizers/wiki/AddressSanitizer#ulimit--v if [ $ASAN -eq 0 ]; then ulimit -v $MAX_VMEM + else + echo -n "ASan enabled. Virtual memory limit is " + ulimit -v fi "$RUNNER" $COMMON_ARGS $ARGS $TMP_DIR/$TMP_FILE \ |