ladybird/Tests/LibGfx/CMakeLists.txt
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

17 lines
398 B
CMake

set(TEST_SOURCES
BenchmarkGfxPainter.cpp
BenchmarkJPEGLoader.cpp
TestDeltaE.cpp
TestFontHandling.cpp
TestGfxBitmap.cpp
TestICCProfile.cpp
TestImageDecoder.cpp
TestRect.cpp
TestScalingFunctions.cpp
)
foreach(source IN LISTS TEST_SOURCES)
serenity_test("${source}" LibGfx LIBS LibGfx)
endforeach()
install(DIRECTORY test-inputs DESTINATION usr/Tests/LibGfx)