Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Fixed a potential out-of-bounds array access whe...



details:   https://anonhg.NetBSD.org/src/rev/e288f11864ac
branches:  trunk
changeset: 778955:e288f11864ac
user:      khorben <khorben%NetBSD.org@localhost>
date:      Sun Apr 22 14:04:45 2012 +0000

description:
Fixed a potential out-of-bounds array access when translating keycodes
for the gdium keyboard.

Reviewed by macallan@

diffstat:

 sys/dev/usb/ukbd.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r b7dac5e76417 -r e288f11864ac sys/dev/usb/ukbd.c
--- a/sys/dev/usb/ukbd.c        Sun Apr 22 12:23:22 2012 +0000
+++ b/sys/dev/usb/ukbd.c        Sun Apr 22 14:04:45 2012 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: ukbd.c,v 1.117 2012/03/11 01:06:07 mrg Exp $        */
+/*      $NetBSD: ukbd.c,v 1.118 2012/04/22 14:04:45 khorben Exp $        */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ukbd.c,v 1.117 2012/03/11 01:06:07 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ukbd.c,v 1.118 2012/04/22 14:04:45 khorben Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -170,7 +170,8 @@
 #endif
                { 76, 71 },     /* delete -> scroll lock */
                { 81, 78 },     /* down -> page down */
-               { 82, 75 }      /* up -> page up */
+               { 82, 75 },     /* up -> page up */
+               {  0, 0 }
 };
 #endif
 



Home | Main Index | Thread Index | Old Index