[lmp] don't THROW() an exception from a dissector

Change-Id: I274be5700a68a7698b6a8de9bf577af548055480
Reviewed-on: https://code.wireshark.org/review/11133
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
This commit is contained in:
Martin Kaiser 2015-10-18 19:05:52 +02:00
parent 534794508d
commit d56057efa9
1 changed files with 7 additions and 5 deletions

View File

@ -1260,12 +1260,13 @@ dissect_lmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
tvb_get_guint8(tvb, offset2+l+1), ENC_NA);
break;
}
if (tvb_get_guint8(tvb, offset2+l+1) < 1)
THROW(ReportedBoundsError);
if (tvb_get_guint8(tvb, offset2+l+1) == 0)
break;
l += tvb_get_guint8(tvb, offset2+l+1);
}
}
break;
break;
case LMP_CLASS_CHANNEL_STATUS:
@ -1850,8 +1851,9 @@ dissect_lmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
tvb_get_guint8(tvb, offset2+l+1), ENC_NA);
break;
}
if (tvb_get_guint8(tvb, offset2+l+1) < 1)
THROW(ReportedBoundsError);
if (tvb_get_guint8(tvb, offset2+l+1) == 0)
break;
l += tvb_get_guint8(tvb, offset2+l+1);
}