1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 07:15:07 +00:00
Commit graph

1 commit

Author SHA1 Message Date
Darius Arnold
884d8b14ac LibGfx: Prevent out of bounds access when scaling small Bitmaps
Since the color interpolation requires two pixels in the horizontal and
vertical direction to work, 1 pixel wide or high bitmaps would cause a
crash when scaling. Fix this by clamping the index into the valid range.

Fixes #16047.
2023-05-24 08:12:14 +02:00