forked from osmocom/wireshark
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>
This commit is contained in:
parent
d5c1449d1b
commit
29b0adac82
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue