Date: Fri, 11 Jan 2008 20:53:52 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 133066 for review Message-ID: <200801112053.m0BKrqFa079644@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=133066 Change 133066 by sam@sam_ebb on 2008/01/11 20:53:40 avoid potential null ptr deref Submitted by: cbz Affected files ... .. //depot/projects/vap/sys/net80211/ieee80211_input.h#2 edit Differences ... ==== //depot/projects/vap/sys/net80211/ieee80211_input.h#2 (text+ko) ==== @@ -34,8 +34,7 @@ wh, NULL, "%s", "no " #__elem ); \ vap->iv_stats.is_rx_elem_missing++; \ _action; \ - } \ - if ((__elem)[1] > (__maxlen)) { \ + } else if ((__elem)[1] > (__maxlen)) { \ IEEE80211_DISCARD(vap, IEEE80211_MSG_ELEMID, \ wh, NULL, "bad " #__elem " len %d", (__elem)[1]); \ vap->iv_stats.is_rx_elem_toobig++; \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801112053.m0BKrqFa079644>