diff options
author | Darius Arnold <mail@dariusarnold.de> | 2022-11-16 11:38:51 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-24 08:12:14 +0200 |
commit | 884d8b14ac0ef1f22ab1bdf6ecddceefdb5aea72 (patch) | |
tree | 1f20981a7a0ec69c09c7918814a9c441e41b8e88 /Userland/Libraries/LibWeb | |
parent | 71d5dc510e454935fe8f20ae8501fceb633db1ff (diff) | |
download | serenity-884d8b14ac0ef1f22ab1bdf6ecddceefdb5aea72.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibWeb')
0 files changed, 0 insertions, 0 deletions