]> git.baikalelectronics.ru Git - kernel.git/commit
USB: musb: Fix array index out of bounds issue
authorMaulik Mankad <x0082077@ti.com>
Tue, 22 Dec 2009 10:49:53 +0000 (16:19 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Dec 2009 19:34:19 +0000 (11:34 -0800)
commit9fe7d6de51d4558d6092004ac1a45a55b5e092f3
treeb0174dab46114128872408535c733aab14adec4a
parentad3066e891b2b75cba8860879ee6eefcff871303
USB: musb: Fix array index out of bounds issue

This patch fixes the below array index out of bounds issue.

Buffer overflow, array index of 'aInfo' may be out of
bounds. Array 'aInfo' of size 78 may use index value(s) 6..84

The data stored in 'aInfo' array exceeds the array size of 78.

This patch increases the size of this array to hold the string
correctly without any memory corruption.

This issue was reported by Klockwork tool.

Signed-off-by: Maulik Mankad <x0082077@ti.com>
Cc: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/musb_core.c