If WIRESHARK_ABORT_ON_DISSECTOR_BUG is set, abort() out if we happened to

catch a DissectorError exception.

(I found this useful when debugging a "More than 1000000 items in the tree"
DissectorError.)

svn path=/trunk/; revision=40772
This commit is contained in:
Jeff Morriss 2012-01-30 17:51:22 +00:00
parent f091005d3e
commit 0a8b301218
1 changed files with 3 additions and 0 deletions

View File

@ -496,6 +496,9 @@ show_exception(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
"%s",
exception_message == NULL ?
dissector_error_nomsg : exception_message);
if (getenv("WIRESHARK_ABORT_ON_DISSECTOR_BUG") != NULL)
abort();
break;
default: