]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8712u: Fix possible buffer overrun
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 27 Nov 2012 18:08:44 +0000 (12:08 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Nov 2012 16:49:21 +0000 (08:49 -0800)
commitef8a579546c5d16cdac87428bf338f8bad7553de
tree52ad2d0b5f1342665b867e9be00ea3f4ed175cde
parent488167266c125d997360bd19ab6073f2b6fda893
staging: r8712u: Fix possible buffer overrun

In routine r8712_report_sec_ie(), the code could set the length
of the buffer to 256; however, that value is one larger than the
corresponding memory allocation.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/mlme_linux.c