Message ID | 200901132130.n0DLUsjq014237@imap1.linux-foundation.org |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
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. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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;