linux/drivers/staging/rtl8192u
Dan Carpenter 047db9915e Staging: rtl8192u: pointer math bug in ieee80211_rx_DELBA()
Smatch complains because "delba" is a pointer to struct
rtl_80211_hdr_3addr so the "delba += sizeof(struct rtl_80211_hdr_3addr);"
is clearly wrong.  We are reading nonsense data from beyond the end of
the buffer and could oops if that memory isn't mapped.

It turns out the next two statements are also wrong. We should delete
the += sizeof() statement and "delba+2" should be "&delba->payload[2]".
"pReasonCode" isn't used so I deleted that.

With-Fix-From: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-07-22 21:03:04 -07:00
..
ieee80211 Staging: rtl8192u: pointer math bug in ieee80211_rx_DELBA() 2015-07-22 21:03:04 -07:00
Kconfig
Makefile staging: rtl8192u: remove unused define USB_RX_AGGREGATION_SUPPORT 2014-08-16 12:23:10 -07:00
authors
changes
copying staging: rtl8192u: Fixed trailing whitespace in copying 2014-09-28 23:39:27 -04:00
r819xU_cmdpkt.c
r819xU_cmdpkt.h
r819xU_firmware.c drivers: staging: rtl8192u: Fix "space required after that ','" errors 2015-07-14 19:49:11 -07:00
r819xU_firmware.h staging: rtl8192u: r819xU_firmware.h: fix line over 80 characters 2015-06-08 13:38:56 -07:00
r819xU_firmware_img.c
r819xU_firmware_img.h
r819xU_phy.c Staging: rtl8192u: Remove unnecessary spaces 2015-03-20 13:11:45 +01:00
r819xU_phy.h
r819xU_phyreg.h staging:r819xU: coding style: Fixed commenting style 2014-08-16 12:23:15 -07:00
r8180_93cx6.c staging:r8180: coding style: Fixed commenting style 2014-08-01 14:42:52 -07:00
r8180_93cx6.h staging:r8180: coding style: Fixed too long lines 2014-08-01 14:42:52 -07:00
r8190_rtl8256.c Staging: rtl8192u: Simplify if condition. 2015-02-26 13:46:35 -08:00
r8190_rtl8256.h Staging: rtl8192u: Fix line over 80 characters 2015-03-01 17:07:05 -08:00
r8192U.h Staging: rtl8192u: Remove TRUE and FALSE macros 2015-03-01 17:04:43 -08:00
r8192U_core.c rtl8192u: don't trample on <linux/ieee80211.h> struct namespace 2015-05-08 09:24:13 +02:00
r8192U_dm.c staging: rtl8192u: Removed redundant bool comparisons in r8192U_dm.c 2015-06-12 17:19:47 -07:00
r8192U_dm.h Staging: rtl8192u: Rename struct to avoid CamelCase 2015-03-18 10:32:39 +01:00
r8192U_hw.h drivers: staging: rtl8192u: Fix "space required before that '*'" errors 2014-09-08 13:59:25 -07:00
r8192U_wx.c Staging: rtl8192u: Simplify if condition 2015-03-16 16:20:26 +01:00
r8192U_wx.h Staging: rtl8192u: Fix comments 2015-03-01 17:07:05 -08:00