ieee802154: reassembly: fix possible buffer overflow
Subsystems (2)
PATCH 1/1 ieee802154: reassembly: fix possible buffer overflow
The max_dsize attribute in ctl_table for lowpan_frags_ns_ctl_table is configured with integer accessing methods. This patch change the max_dsize attribute to int to avoid a possible buffer overflow.
Signed-off-by Alexander Aring <[email protected]>
--- include/net/netns/ieee802154_6lowpan.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/net/netns/ieee802154_6lowpan.h +1 -1
@@ -16,7 +16,7 @@ struct netns_sysctl_lowpan {struct netns_ieee802154_lowpan {struct netns_sysctl_lowpan sysctl;struct netns_frags frags; -u16 max_dsize; +int max_dsize; };#endif
Signature · 1 line
2.0.1
From: Alexander Aring <[email protected]>
Date: Sun, 29 Jun 2014 13:10:18 +0200
Quoted 5 lines
The
max_dsizeattribute inctl_tableforlowpan_frags_ns_ctl_tableis configured with integer accessing methods. This patch change themax_dsizeattribute to int to avoid a possible buffer overflow.Signed-off-by Alexander Aring <[email protected]>
Applied, thanks.