1
linux/drivers/video/fbdev/sis
Andrey Shumilin 9cf14f5a27 fbdev: sisfb: Fix strbuf array overflow
The values of the variables xres and yres are placed in strbuf.
These variables are obtained from strbuf1.
The strbuf1 array contains digit characters
and a space if the array contains non-digit characters.
Then, when executing sprintf(strbuf, "%ux%ux8", xres, yres);
more than 16 bytes will be written to strbuf.
It is suggested to increase the size of the strbuf array to 24.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Andrey Shumilin <shum.sdl@nppct.ru>
Signed-off-by: Helge Deller <deller@gmx.de>
2024-09-28 00:42:11 +02:00
..
300vtbl.h
310vtbl.h
init301.c
init301.h
init.c
init.h
initdef.h
initextlfb.c
Makefile
oem300.h
oem310.h
sis_accel.c
sis_accel.h
sis_main.c
sis_main.h
sis.h
vgatypes.h
vstruct.h