#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/tcpdump/print-802_11.c,v 1.31.2.9 2005-11-13 20:03:53 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-802_11.c,v 1.31.2.10 2005-11-13 20:23:09 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
memcpy(&pbody->ssid, p + offset, 2);
offset += 2;
if (pbody->ssid.length != 0) {
- if (pbody->ssid.length > 32)
+ if (pbody->ssid.length >
+ sizeof(pbody->ssid.ssid) - 1)
return;
if (!TTEST2(*(p + offset), pbody->ssid.length))
return;
memcpy(&pbody->challenge, p + offset, 2);
offset += 2;
if (pbody->challenge.length != 0) {
- if (pbody->challenge.length > 253)
+ if (pbody->challenge.length >
+ sizeof(pbody->challenge.text) - 1)
return;
if (!TTEST2(*(p + offset), pbody->challenge.length))
return;
if (pbody->tim.length <= 3)
break;
- if (pbody->rates.length > 251)
+ if (pbody->rates.length > sizeof pbody->tim.bitmap)
return;
if (!TTEST2(*(p + offset), pbody->tim.length - 3))
return;