1
linux/drivers/char
Antonino A. Daplas 414edcd32a [PATCH] vt: fix possible memory corruption in complement_pos
Based on a patch from Andr Pereira de Almeida <andre@cachola.com.br>

It might be possible for the saved pointer (*p) to become invalid in
between vc_resizes, so saving the screen offset instead of the screen
pointer is saner.

This bug is very hard to trigger though, but Andre probably did, if he's
submitting this patch.  Anyway, with Andre's patch, it's still possible for
the offsets to be still illegal, if the new screen size is smaller than the
old one.  So I've also added checks if the offsets are still within the
screenbuffer size.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-07 16:57:36 -07:00
..
agp [PATCH] agp: restore APBASE after setting APSIZE 2005-07-29 15:01:15 -07:00
drm drm: fix a bad VERSION check. 2005-08-23 12:15:43 +10:00
ftape
ip2
ipmi [PATCH] clean up inline static vs static inline 2005-07-27 16:26:20 -07:00
mwave [SERIAL] Convert mwave to use serial8250_(un)?register_port 2005-08-31 22:19:33 +01:00
pcmcia [PATCH] pcmcia: remove references to pcmcia/version.h 2005-07-07 18:24:07 -07:00
rio [PATCH] turn many #if $undefined_string into #ifdef $undefined_string 2005-07-27 16:26:08 -07:00
tpm [PATCH] tpm_infineon: Bugfix in PNPACPI-handling 2005-09-05 00:05:37 -07:00
watchdog Merge watchdog driver updates 2005-09-05 06:00:45 -07:00
amiserial.c
applicom.c
applicom.h
cd1865.h
ChangeLog
consolemap.c
cp437.uni
cyclades.c
decserial.c
defkeymap.c_shipped
defkeymap.map
digi1.h [PATCH] Clean up the old digi support and rescue it 2005-09-07 16:57:20 -07:00
digi.h
digiFep1.h [PATCH] Clean up the old digi support and rescue it 2005-09-07 16:57:20 -07:00
digiPCI.h
ds1286.c
ds1302.c
ds1620.c
dsp56k.c
dtlk.c
ec3104_keyb.c
efirtc.c
epca.c [PATCH] Clean up the old digi support and rescue it 2005-09-07 16:57:20 -07:00
epca.h [PATCH] Clean up the old digi support and rescue it 2005-09-07 16:57:20 -07:00
epcaconfig.h
esp.c
generic_nvram.c
generic_serial.c
genrtc.c
hangcheck-timer.c [PATCH] In hangcheck-timer.c call emergency_restart() 2005-07-26 14:35:44 -07:00
hpet.c
hvc_console.c [PATCH] hvc_console: Register ops when setting up hvc_console 2005-07-07 18:23:39 -07:00
hvc_vio.c [PATCH] Make MODULE_DEVICE_TABLE work for vio devices 2005-08-30 13:31:56 +10:00
hvcs.c [PATCH] Make MODULE_DEVICE_TABLE work for vio devices 2005-08-30 13:31:56 +10:00
hvsi.c [PATCH] hvc_console: Use hvc_get_chars in hvsi code 2005-07-07 18:23:40 -07:00
hw_random.c [PATCH] PCI: clean up dynamic pci id logic 2005-07-01 13:35:50 -07:00
i8k.c
ip2.c
ip2main.c
ip27-rtc.c
isicom.c
istallion.c
ite_gpio.c
Kconfig [PATCH] Clean up the old digi support and rescue it 2005-09-07 16:57:20 -07:00
keyboard.c Input: check keycodesize when adjusting keymaps 2005-07-24 00:50:03 -05:00
lcd.c
lcd.h
lp.c
Makefile [PATCH] hvc_console: Separate hvc_console and vio code 2 2005-07-07 18:23:39 -07:00
mbcs.c
mbcs.h
mem.c [PATCH] remove a dead extern in mem.c 2005-09-07 16:57:23 -07:00
misc.c [PATCH] move m68k rtc drivers over to initcalls 2005-09-07 16:57:23 -07:00
mmtimer.c
moxa.c [SERIAL] Fix moxa tty driver name 2005-09-03 16:26:49 +01:00
mxser.c [MOXA]: Fix this driver properly. 2005-09-05 23:30:15 -07:00
mxser.h
n_hdlc.c
n_r3964.c
n_tty.c [PATCH] tty output lossage fix 2005-07-07 18:23:45 -07:00
nvram.c
nwbutton.c
nwbutton.h
nwflash.c
ppdev.c
pty.c
qtronix.c
qtronixmap.c_shipped
qtronixmap.map
random.c [RANDOM]: Introduce secure_dccp_sequence_number 2005-08-29 15:49:40 -07:00
raw.c
riscom8_reg.h
riscom8.c
riscom8.h
rocket_int.h
rocket.c [PATCH] rocket.c: Fix ldisc ref count handling 2005-07-15 09:54:51 -07:00
rocket.h
rtc.c [RTC]: Use SA_SHIRQ in sparc specific code. 2005-09-05 23:33:05 -07:00
s3c2410-rtc.c
scan_keyb.c
scan_keyb.h
scc.h
scx200_gpio.c
selection.c
ser_a2232.c
ser_a2232.h
ser_a2232fw.ax
ser_a2232fw.h
serial167.c
snsc_event.c [IA64-SGI] fix unaligned memory access in snsc_event.c 2005-08-15 14:17:49 -07:00
snsc.c
snsc.h
sonypi.c [PATCH] sonypi: remove obsolete event 2005-09-07 16:57:24 -07:00
specialix_io8.h
specialix.c
stallion.c
sx.c
sx.h
sxboards.h
sxwindow.h
synclink.c
synclinkmp.c
sysrq.c [PATCH] Update sysrq-B to use emergency_restart() 2005-07-26 14:35:43 -07:00
tb0219.c [PATCH] TB0219: add PCI IRQ initialization 2005-07-12 16:01:02 -07:00
tipar.c
toshiba.c
tty_io.c [PATCH] move 68360serial.c over use initcalls 2005-09-07 16:57:24 -07:00
tty_ioctl.c
vc_screen.c
viocons.c
viotape.c [PATCH] Make MODULE_DEVICE_TABLE work for vio devices 2005-08-30 13:31:56 +10:00
vme_scc.c
vr41xx_giu.c
vr41xx_rtc.c
vt_ioctl.c
vt.c [PATCH] vt: fix possible memory corruption in complement_pos 2005-09-07 16:57:36 -07:00