Inquire what frame_size < msdu_length means.
Change-Id: Ie618ed61fb098bfe55529e31e9cc3f6bfe7d4ac0 Reviewed-on: https://code.wireshark.org/review/23575 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
b93ef37da2
commit
4b8504f39a
|
@ -1990,8 +1990,13 @@ static gboolean vwr_read_s3_W_rec(vwr_t *vwr, struct wtap_pkthdr *phdr,
|
|||
frame_size = rec_size - (stats_offset + vwr->MPDU_OFF + vVW510021_W_STATS_TRAILER_LEN);
|
||||
if (frame_size > ((int) msdu_length))
|
||||
actual_octets = msdu_length;
|
||||
else
|
||||
else {
|
||||
/*
|
||||
* XXX - does this mean "the packet was cut short during
|
||||
* capture" or "this is a malformed record"?
|
||||
*/
|
||||
actual_octets = frame_size;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue