* [patch 1/1] drivers/net/irda/irda-usb.c: fix buffer overflow
@ 2009-01-13 21:30 akpm
2009-01-15 4:55 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2009-01-13 21:30 UTC (permalink / raw)
To: davem; +Cc: netdev, akpm, josevteg, linville, samuel, stable
From: Jos-Vicente Gilabert <josevteg@gmail.com>
Taken from http://bugzilla.kernel.org/show_bug.cgi?id=12397
We're doing an sprintf of an 11-char string into an 11-char buffer.
Whoops. It breaks firmware uploading.
Reported-by: Jos-Vicente Gilabert <josevteg@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Samuel Ortiz <samuel@sortiz.org>
Cc: "John W. Linville" <linville@tuxdriver.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/net/irda/irda-usb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN drivers/net/irda/irda-usb.c~drivers-net-irda-irda-usbc-fix-buffer-overflow drivers/net/irda/irda-usb.c
--- a/drivers/net/irda/irda-usb.c~drivers-net-irda-irda-usbc-fix-buffer-overflow
+++ a/drivers/net/irda/irda-usb.c
@@ -1073,7 +1073,7 @@ static int stir421x_patch_device(struct
{
unsigned int i;
int ret;
- char stir421x_fw_name[11];
+ char stir421x_fw_name[12];
const struct firmware *fw;
const unsigned char *fw_version_ptr; /* pointer to version string */
unsigned long fw_version = 0;
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch 1/1] drivers/net/irda/irda-usb.c: fix buffer overflow
2009-01-13 21:30 [patch 1/1] drivers/net/irda/irda-usb.c: fix buffer overflow akpm
@ 2009-01-15 4:55 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-01-15 4:55 UTC (permalink / raw)
To: akpm; +Cc: netdev, josevteg, linville, samuel, stable
From: akpm@linux-foundation.org
Date: Tue, 13 Jan 2009 13:30:54 -0800
> From: Jos-Vicente Gilabert <josevteg@gmail.com>
>
> Taken from http://bugzilla.kernel.org/show_bug.cgi?id=12397
>
> We're doing an sprintf of an 11-char string into an 11-char buffer.
> Whoops. It breaks firmware uploading.
>
> Reported-by: Jos-Vicente Gilabert <josevteg@gmail.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Patch applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-15 4:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-13 21:30 [patch 1/1] drivers/net/irda/irda-usb.c: fix buffer overflow akpm
2009-01-15 4:55 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).