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
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
: 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