Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net80211 Switch sp_timoff to u_int16_t, to prevent possi...



details:   https://anonhg.NetBSD.org/src/rev/315b1dfc3599
branches:  trunk
changeset: 829192:315b1dfc3599
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun Jan 21 14:18:21 2018 +0000

description:
Switch sp_timoff to u_int16_t, to prevent possible overflow in
ieee80211_recv_mgmt_beacon(). Actually this field is unused.

diffstat:

 sys/net80211/ieee80211_node.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 7773f9ab8646 -r 315b1dfc3599 sys/net80211/ieee80211_node.h
--- a/sys/net80211/ieee80211_node.h     Sun Jan 21 14:13:49 2018 +0000
+++ b/sys/net80211/ieee80211_node.h     Sun Jan 21 14:18:21 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieee80211_node.h,v 1.28 2018/01/16 18:42:43 maxv Exp $ */
+/*     $NetBSD: ieee80211_node.h,v 1.29 2018/01/21 14:18:21 maxv Exp $ */
 /*-
  * Copyright (c) 2001 Atsushi Onoe
  * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
@@ -303,7 +303,7 @@
        u_int8_t        sp_fhindex;
        u_int8_t        sp_erp;
        u_int16_t       sp_bintval;
-       u_int8_t        sp_timoff;
+       u_int16_t       sp_timoff;
        u_int8_t        *sp_tim;
        u_int8_t        *sp_tstamp;
        u_int8_t        *sp_country;



Home | Main Index | Thread Index | Old Index