https://github.com/torvalds/linux
Revision b652277b09d3d030cb074cc6a98ba80b34244c03 authored by Dan Carpenter on 03 March 2011, 16:56:06 UTC, committed by Martin Schwidefsky on 03 March 2011, 16:56:14 UTC
The "ct" variable should be an unsigned int.  Both struct kbdiacrs
->kb_cnt and struct kbd_data ->accent_table_size are unsigned ints.

Making it signed causes a problem in KBDIACRUC because the user could
set the signed bit and cause a buffer overflow.

Cc: <stable@kernel.org>
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 0c0db03
History
Tip revision: b652277b09d3d030cb074cc6a98ba80b34244c03 authored by Dan Carpenter on 03 March 2011, 16:56:06 UTC
[S390] keyboard: integer underflow bug
Tip revision: b652277
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 941 bytes
.mailmap -rw-r--r-- 4.0 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.7 KB
Kbuild -rw-r--r-- 2.4 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 187.0 KB
Makefile -rw-r--r-- 50.9 KB
README -rw-r--r-- 17.1 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top