summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/QualifiedName.cpp
diff options
context:
space:
mode:
authorDarius Arnold <mail@dariusarnold.de>2022-11-16 11:38:51 +0100
committerAndreas Kling <kling@serenityos.org>2023-05-24 08:12:14 +0200
commit884d8b14ac0ef1f22ab1bdf6ecddceefdb5aea72 (patch)
tree1f20981a7a0ec69c09c7918814a9c441e41b8e88 /Userland/Libraries/LibWeb/DOM/QualifiedName.cpp
parent71d5dc510e454935fe8f20ae8501fceb633db1ff (diff)
downloadserenity-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/DOM/QualifiedName.cpp')
0 files changed, 0 insertions, 0 deletions