diff options
-rw-r--r-- | epan/dissectors/packet-bvlc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/dissectors/packet-bvlc.c b/epan/dissectors/packet-bvlc.c index 64bd69092e..db50ccf8ba 100644 --- a/epan/dissectors/packet-bvlc.c +++ b/epan/dissectors/packet-bvlc.c @@ -142,6 +142,11 @@ dissect_bvlc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } if (tree) { + if (bvlc_length < 4) { + proto_tree_add_text(tree, tvb, 2, 2, + "Bogus length: %d", bvlc_length); + return; + } ti = proto_tree_add_item(tree, proto_bvlc, tvb, 0, bvlc_length, FALSE); bvlc_tree = proto_item_add_subtree(ti, ett_bvlc); |