Prevent malformed packet exceptions.
Bug: 15273
Change-Id: I88c8fe4bf19d1c8ef478068dde8c220afdd33589
Reviewed-on: https://code.wireshark.org/review/30565
Petri-Dish: Richard Sharpe <realrichardsharpe@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
if (dissected <= 0)
{
call_data_dissector(vendor_tvb, pinfo, tree);
- /* don't advance the dissector pointer as this will probably cause more malformed packets
- if vendor is unknown. It also matches previous behavior (before dissection table implementation) */
- dissected = 0;
+ /* Skip the whole TVB because we don't know its format */
+ dissected = tvb_reported_length_remaining(vendor_tvb, 0);
}
offset += dissected;