Commit Graph

9 Commits

Author SHA1 Message Date
Stephen Fisher 8159506ae9 Set WIRESHARK_ABORT_ON_DISSECTOR_BUG when running test-fuzzed-cap.sh
to get a stack trace/core dump on dissector bugs.


svn path=/trunk/; revision=38985
2011-09-13 15:52:07 +00:00
Jeff Morriss 4f510bc54d Based on https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5821#c2 :
Move the setting of debug environment variables out of the while loop.

Export MALLOC_OPTIONS=AJ to increase memory allocation debug on FreeBSD (and
others).

Export a number of environment variables that MacOS looks at.

(I don't have easy access to either of these OS so this has not been tested.)

Add a comments for each entry explaining which OS uses it and what it does.

svn path=/trunk/; revision=36622
2011-04-13 15:36:05 +00:00
Bill Meier 8867ada0f8 Export G_SLICE=debug-blocks to do additional memory checks;
svn path=/trunk/; revision=35166
2010-12-10 05:23:40 +00:00
Jeff Morriss 7d20440ff0 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
2010-09-02 18:02:06 +00:00
Jeff Morriss 0a7ced6eb4 Add BIN_DIR. If it is '.' then set WIRESHARK_RUN_FROM_BUILD_DIRECTORY so that we test plugins
svn path=/trunk/; revision=33093
2010-06-04 19:57:11 +00:00
Jeff Morriss 2dc4b6ae91 Export MALLOC_CHECK_=3 when fuzz testing in case we're on a glibc-based system:
this value will cause glibc to do some memory allocation checking for us and
abort if it finds a problem.

(If we're not on a glibc-based system this will have no effect but should also
do no harm.)

(I think the buildbot already runs with this set but it's better for all of us
to have it set, too.)

svn path=/trunk/; revision=32528
2010-04-21 00:53:24 +00:00
Jeff Morriss c9b88696c9 Turn on memory scrubbing when fuzz testing.
svn path=/trunk/; revision=32487
2010-04-16 00:56:11 +00:00
Jeff Morriss 71b8709d52 Use SE canaries when fuzz testing.
svn path=/trunk/; revision=30566
2009-10-15 22:01:59 +00:00
Jeff Morriss 6f28135ec8 Add a little script to set up ulimits before testing a capture that failed fuzz testing.
svn path=/trunk/; revision=30251
2009-10-02 18:25:28 +00:00