* [PATCH] eata: Buffer overflow
@ 2009-07-25 23:05 Roel Kluin
0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2009-07-25 23:05 UTC (permalink / raw)
To: ballabio_dario, linux-scsi, Andrew Morton
allows i == MAX_INT_PARAM, which is out of range
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/drivers/scsi/eata.c b/drivers/scsi/eata.c
index c7076ce..3c5abf7 100644
--- a/drivers/scsi/eata.c
+++ b/drivers/scsi/eata.c
@@ -1509,7 +1509,7 @@ static int option_setup(char *str)
char *cur = str;
int i = 1;
- while (cur && isdigit(*cur) && i <= MAX_INT_PARAM) {
+ while (cur && isdigit(*cur) && i < MAX_INT_PARAM) {
ints[i++] = simple_strtoul(cur, NULL, 0);
if ((cur = strchr(cur, ',')) != NULL)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-25 23:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-25 23:05 [PATCH] eata: Buffer overflow Roel Kluin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.