aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bpv7.c
diff options
context:
space:
mode:
authorBrian Sipos <brian.sipos@gmail.com>2021-10-12 18:59:57 -0400
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-10-12 23:15:50 +0000
commit01e858e0a3efef54957efc0f4cae0106660dded3 (patch)
tree080b773c6f18998044399e8c057f5c854b30d8dd /epan/dissectors/packet-bpv7.c
parentade523d7baab77b6204ebc8f7a9653aee4a79bb3 (diff)
BP: Fix crashes on invalid fuzzed inputs
Diffstat (limited to 'epan/dissectors/packet-bpv7.c')
-rw-r--r--epan/dissectors/packet-bpv7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-bpv7.c b/epan/dissectors/packet-bpv7.c
index c6b2660a75..9c7d6a6af6 100644
--- a/epan/dissectors/packet-bpv7.c
+++ b/epan/dissectors/packet-bpv7.c
@@ -1390,7 +1390,7 @@ static int dissect_bp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void
bp_block_canonical_t *block = wmem_list_frame_data(it);
// Payload block requirements
- if (*(block->type_code) == BP_BLOCKTYPE_PAYLOAD) {
+ if (block->type_code && (*(block->type_code) == BP_BLOCKTYPE_PAYLOAD)) {
// must be last block (i.e. next is NULL)
if (wmem_list_frame_next(it)) {
expert_add_info(pinfo, block->item_block, &ei_block_payload_index);