Use tvb_length() instead of tvb_reported_length_remaining() for a heuristics length check.
Change-Id: I197fe3d401ffb2d5894c823690a11f4a68fb7268 Reviewed-on: https://code.wireshark.org/review/585 Reviewed-by: Bill Meier <wmeier@newsguy.com> Tested-by: Bill Meier <wmeier@newsguy.com>
This commit is contained in:
parent
fced2dd196
commit
3003f1c791
|
@ -746,7 +746,7 @@ static gboolean dissect_atn_ulcs_heur(
|
|||
{
|
||||
/* do we have enough data*/
|
||||
/* at least session + presentation data or pdv-list */
|
||||
if (tvb_reported_length_remaining(tvb, 0) < 2){
|
||||
if (tvb_length(tvb) < 2){
|
||||
return FALSE; }
|
||||
|
||||
/* check for session/presentation/ACSE PDU's */
|
||||
|
|
|
@ -2142,7 +2142,7 @@ static gboolean dissect_atn_ulcs_heur(
|
|||
{
|
||||
/* do we have enough data*/
|
||||
/* at least session + presentation data or pdv-list */
|
||||
if (tvb_reported_length_remaining(tvb, 0) < 2){
|
||||
if (tvb_length(tvb) < 2){
|
||||
return FALSE; }
|
||||
|
||||
/* check for session/presentation/ACSE PDU's */
|
||||
|
|
Loading…
Reference in New Issue