| Submitter | Andrew Morton |
|---|---|
| Date | Jan. 13, 2009, 9:30 p.m. |
| Message ID | <200901132130.n0DLUsjq014237@imap1.linux-foundation.org> |
| Download | mbox | patch |
| Permalink | /patch/18299/ |
| State | Accepted |
| Delegated to: | David Miller |
| Headers | show |
Comments
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
Patch
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;