Skip to content

Commit

Permalink
ieee802154: reassembly: fix possible buffer overflow
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
alexaring authored and davem330 committed Jul 3, 2014
1 parent 98846e6 commit 48bc034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/netns/ieee802154_6lowpan.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 48bc034

Please sign in to comment.