kernel_samsung_a53x/drivers/video
Andrey Shumilin 570fd856d3 fbdev: sisfb: Fix strbuf array overflow
[ Upstream commit 9cf14f5a2746c19455ce9cb44341b5527b5e19c3 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:50 +01:00
..
backlight backlight: lp8788: Fully initialize backlight_properties during probe 2024-11-19 08:44:56 +01:00
console Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fbdev fbdev: sisfb: Fix strbuf array overflow 2024-11-23 23:21:50 +01:00
logo Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
display_timing.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hdmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
of_display_timing.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
of_videomode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vgastate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
videomode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00