Strengthen heuristics for Packets.

This fixes bug 6073.

svn path=/trunk/; revision=37828
This commit is contained in:
Stig Bjørlykke 2011-06-29 07:02:04 +00:00
parent 132c09f2d5
commit 958919b8ca
1 changed files with 4 additions and 0 deletions

View File

@ -952,6 +952,10 @@ check_rpcap_heur (tvbuff_t *tvb, gboolean tcp)
/* Must have the frame header */
if (plen < 20)
return FALSE;
/* Check if capture length is valid */
if (tvb_get_ntohl (tvb, offset+8) > len)
return FALSE;
break;
case RPCAP_MSG_FINDALLIF_REPLY: