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 fbdev: sisfb: hide unused variables 2024-04-03 14:38:07 +02:00
init301.h
init.c video: fbdev: sis: fix typos in SiS_GetModeID() 2022-07-26 09:16:38 +02:00
init.h
initdef.h
initextlfb.c
Makefile
oem300.h
oem310.h
sis_accel.c fbdev: sisfb: fix repeated word in comment 2022-10-20 08:34:22 +02:00
sis_accel.h
sis_main.c fbdev: sisfb: Fix strbuf array overflow 2024-09-28 00:42:11 +02:00
sis_main.h
sis.h
vgatypes.h
vstruct.h fbdev: sisfb: use explicitly signed char 2022-10-24 20:28:41 +02:00