Re: [PATCH] video: fbdev: metronomefb: Fix buffer overflow in load_waveform()

2024-11-15 Thread Suraj Sonawane
On 14/11/24 20:13, Helge Deller wrote: On 11/12/24 21:28, Suraj Sonawane wrote: Fix an error detected by the Smatch tool: drivers/video/fbdev/metronomefb.c:220 load_waveform() error: buffer overflow 'wfm_hdr->stuff2a' 2 <= 4 drivers/video/fbdev/metronomefb.c:220 load_waveform

[PATCH] video: fbdev: metronomefb: Fix buffer overflow in load_waveform()

2024-11-12 Thread Suraj Sonawane
wfm_hdr->stuff2a in the loop can lead to a buffer overflow if stuff2a is not large enough. To fix this, a check was added to ensure that stuff2a has sufficient space before accessing it. This prevents the overflow and improves the safety of the code. Signed-off-by: Suraj Sonawane --- dr

Re: [PATCH] video: fix inconsistent indentation warning

2024-10-15 Thread Suraj Sonawane
: SurajSonawane2415 ---   drivers/video/fbdev/nvidia/nv_hw.c | 8   1 file changed, 4 insertions(+), 4 deletions(-) applied. Thanks! Helge Thank you for applying the patch! Best regards, Suraj Sonawane