linux/drivers/tty/vt
Adam Borowski 669e0a51b1 vt: Fix a read-past-array in vc_t416_color().
This makes it show up on UBSAN:
perl -e 'for (0..15) {my @x=("0")x$_;push @x,qw(38 2 64 128 192 4);printf
"\e[%smAfter %d zeroes.\e[0m\n", join(";",@x[0..($_+5<15?$_+5:15)]), $_}'

Seems harmless: if you can programmatically read attributes of a vt
character (/dev/vcsa*), multiple probes can obtain parts of vt_mode then
lowest byte (5th on 64-bit big-endian) of a pointer.

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-09-22 11:41:54 +02:00
..
.gitignore
consolemap.c tty: vt, ignore PIO_UNIMAPCLR param 2016-06-25 09:04:48 -07:00
cp437.uni
defkeymap.c_shipped
defkeymap.map
keyboard.c TTY/Serial driver update for 4.8-rc1 2016-07-24 17:14:37 -07:00
Makefile tty: vt/Makefile: set the variables to static 2013-01-15 21:52:24 -08:00
selection.c tty: Replace TTY_THROTTLED bit tests with tty_throttled() 2016-04-30 09:26:55 -07:00
vc_screen.c vc: switch to fixed_size_llseek() 2013-06-29 12:57:30 +04:00
vt_ioctl.c tty: vt, ignore PIO_UNIMAPCLR param 2016-06-25 09:04:48 -07:00
vt.c vt: Fix a read-past-array in vc_t416_color(). 2016-09-22 11:41:54 +02:00