diff options
author | Gerald Combs <gerald@wireshark.org> | 2010-07-07 16:55:42 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2010-07-07 16:55:42 +0000 |
commit | 3bc24f2d989b6297d9d1cf56ffa5d893936cfae9 (patch) | |
tree | 65abbe25bf4a07ae6a2d7f80cc1d645c23782536 /tools | |
parent | 3d431c8258d8ea025d7c994aabc21bc70d12b689 (diff) |
Try limiting our stack size.
svn path=/trunk/; revision=33466
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/fuzz-test.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tools/fuzz-test.sh b/tools/fuzz-test.sh index 13970d39a2..117e715c1d 100755 --- a/tools/fuzz-test.sh +++ b/tools/fuzz-test.sh @@ -32,10 +32,17 @@ MAX_PASSES=0 TWO_PASS= # These may be set to your liking -# Stop the child process, if it's running longer than x seconds +# Stop the child process if it's running longer than x seconds MAX_CPU_TIME=900 -# Stop the child process, if it's using more than y * 1024 bytes +# Stop the child process if it's using more than y * 1024 bytes MAX_VMEM=500000 +# Stop the child process if its stack is larger than than z * 1024 bytes +# Windows XP: 2033 +# Windows 7: 2034 +# OS X 10.6: 8192 +# Linux 2.6.24: 8192 +# Solaris 10: 8192 +MAX_STACK=2033 # Insert z times an error into the capture file (0.02 seems to be a good value to find errors) ERR_PROB=0.02 # Trigger an abort if a dissector finds a bug. @@ -69,7 +76,7 @@ fi # set some limits to the child processes, e.g. stop it if it's running longer then MAX_CPU_TIME seconds # (ulimit is not supported well on cygwin and probably other platforms, e.g. cygwin shows some warnings) -ulimit -S -t $MAX_CPU_TIME -v $MAX_VMEM +ulimit -S -t $MAX_CPU_TIME -v $MAX_VMEM -s $MAX_STACK ulimit -c unlimited ### usually you won't have to change anything below this line ### |