fix(thorvg): ensure height is always positive (#9712)

This commit is contained in:
André Costa
2026-02-09 20:54:07 +01:00
committed by GitHub
parent 42a26c1b70
commit 2341ca5d38
+1 -1
View File
@@ -837,7 +837,7 @@ static AASpans* _AASpans(float ymin, float ymax, const SwImage* image, const SwB
aaSpans->yEnd = yEnd;
//Initialize X range
auto height = yEnd - yStart;
auto height = std::abs(yEnd - yStart);
aaSpans->lines = static_cast<AALine*>(lv_malloc(height * sizeof(AALine)));
LV_ASSERT_MALLOC(aaSpans->lines);