summaryrefslogtreecommitdiff
path: root/epan/proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/proto.c')
-rw-r--r--epan/proto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/proto.c b/epan/proto.c
index 7c3a2148c4..777e08c224 100644
--- a/epan/proto.c
+++ b/epan/proto.c
@@ -107,6 +107,8 @@ wrs_count_bitshift(const guint32 bitmask)
return(NULL); \
PTREE_DATA(tree)->count++; \
if (PTREE_DATA(tree)->count > MAX_TREE_ITEMS) { \
+ if (getenv("WIRESHARK_ABORT_ON_DISSECTOR_BUG") != NULL) \
+ abort(); \
/* Let the exception handler add items to the tree */ \
PTREE_DATA(tree)->count = 0; \
THROW_MESSAGE(DissectorError, \