All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 001/001] input: fix read past array bounds
@ 2008-10-05  6:12 Michal Roszkowski
  2008-10-05 16:08 ` walter harms
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Michal Roszkowski @ 2008-10-05  6:12 UTC (permalink / raw)
  To: kernel-janitors


---

Trivial fix for read past end of key_map[] when keycode = NR_KEYS.

--- linux-2.6.26.5/drivers/char/keyboard.c.orig	2008-10-05  
15:51:09.000000000 +1030
+++ linux-2.6.26.5/drivers/char/keyboard.c	2008-10-05  
15:52:17.000000000 +1030
@@ -1247,7 +1247,7 @@ static void kbd_keycode(unsigned int key
		return;
	}

-	if (keycode > NR_KEYS)
+	if (keycode >= NR_KEYS)
		if (keycode >= KEY_BRL_DOT1 && keycode <= KEY_BRL_DOT8)
			keysym = K(KT_BRL, keycode - KEY_BRL_DOT1 + 1);
		else


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-10-06  7:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-05  6:12 [patch 001/001] input: fix read past array bounds Michal Roszkowski
2008-10-05 16:08 ` walter harms
2008-10-05 22:44 ` Michal Roszkowski
2008-10-06  7:15 ` walter harms

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.