[dcm] don't THROW() an exception from a dissector
in this case, we can simply exit the loop if we see an invalid pdu length Change-Id: I818736f25d15d9054ea66b4670a5362b557b0e9f Reviewed-on: https://code.wireshark.org/review/13083 Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
7c5b0d427a
commit
20ca6d0a11
|
@ -6966,7 +6966,7 @@ dissect_dcm_main(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean i
|
|||
pdu_start = pdu_start + pdu_len + 6;
|
||||
if (pdu_start <= old_pdu_start) {
|
||||
expert_add_info_format(pinfo, NULL, &ei_dcm_invalid_pdu_length, "Invalid PDU length (%u)", pdu_len);
|
||||
THROW(ReportedBoundsError);
|
||||
break;
|
||||
}
|
||||
|
||||
if (pdu_start < tlen - 6) {
|
||||
|
|
Loading…
Reference in New Issue