From 462bf277f2174f0695eb1594c1cece08f54fa3cb Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Thu, 10 Dec 2020 14:16:41 +0900 Subject: [PATCH] sw_engine rle: fix an invalid memory access. There is a mistake that over-access boundary. This fix it. @Issues: 178 --- src/lib/sw_engine/tvgSwRle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/sw_engine/tvgSwRle.cpp b/src/lib/sw_engine/tvgSwRle.cpp index 53468a53..eb309735 100644 --- a/src/lib/sw_engine/tvgSwRle.cpp +++ b/src/lib/sw_engine/tvgSwRle.cpp @@ -622,7 +622,7 @@ SwSpan* _intersectSpansRegion(const SwRleData *clip, const SwRleData *targetRle, auto clipEnd = clip->spans + clip->size; while (spanCnt > 0 && spans < end ) { - if (clipSpans > clipEnd) { + if (clipSpans == clipEnd) { spans = end; break; }