Re: [PATCH v2] fbdev: Add bounds checking in bit_putcs to fix vmalloc-out-of-bounds

2025-10-03 Thread Helge Deller
On 10/3/25 09:32, Albin Babu Varghese wrote: Add bounds checking to prevent writes past framebuffer boundaries when rendering text near screen edges. Return early if the Y position is off-screen and clip image height to screen boundary. Break from the rendering loop if the X position is off-scree

[PATCH v2] fbdev: Add bounds checking in bit_putcs to fix vmalloc-out-of-bounds

2025-10-03 Thread Albin Babu Varghese
Add bounds checking to prevent writes past framebuffer boundaries when rendering text near screen edges. Return early if the Y position is off-screen and clip image height to screen boundary. Break from the rendering loop if the X position is off-screen. When clipping image width to fit the screen,