Re: [Patch] Overrun in drivers/input/joystick/db9.c

From: Dmitry Torokhov
Date: Tue Jun 27 2006 - 23:42:24 EST


On Tuesday 27 June 2006 18:16, Eric Sesterhenn wrote:
> hi,
>
> coverity spotted this overrun (#id 483), we assign
> db9_mode = &db9_modes[mode]; some lines before, so
> if we use mode as index again we might get past the
> array once mode is greater than DB9_MAX_PAD/2,
> besides this this patch changes the code to what
> the author possibly intended it to do.
>

Applied, thank you.

--
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/