diff options
author | Gerald Combs <gerald@wireshark.org> | 2017-10-09 12:19:02 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2017-10-09 19:23:06 +0000 |
commit | e8dbf386d8a830d822ff5f2857c63338a7998abb (patch) | |
tree | d4e9e44d8360f1f3ab5c7d9e6591ea49411bad4d /tools/fuzz-test.sh | |
parent | 3bfb9aabe0e525ad76251190289c1ea3417fb1aa (diff) |
Fuzz: Write memory leak info to the error log.
When we exit due to excessive memory leaks make sure we say so in the
error log.
Change-Id: I03f60271f3e4bb467fbaa5b9ac17431eed96f300
Reviewed-on: https://code.wireshark.org/review/23870
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'tools/fuzz-test.sh')
-rwxr-xr-x | tools/fuzz-test.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/fuzz-test.sh b/tools/fuzz-test.sh index d763611d3b..8d7b2668e9 100755 --- a/tools/fuzz-test.sh +++ b/tools/fuzz-test.sh @@ -255,6 +255,7 @@ while [ \( $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 \) -a $DONE -ne 1 ] ; do VG_ERR_CNT=1 elif [ "$VG_TOTAL_LEAKED" -gt "$MAX_LEAK" ] ; then echo "Definitely + indirectly ($VG_DEF_LEAKED + $VG_IND_LEAKED) exceeds max ($MAX_LEAK)." + echo "Definitely + indirectly ($VG_DEF_LEAKED + $VG_IND_LEAKED) exceeds max ($MAX_LEAK)." >> $TMP_DIR/$ERR_FILE VG_ERR_CNT=1 fi if grep -q "Valgrind cannot continue" $TMP_DIR/$ERR_FILE; then |