sw_engine rle: fix an invalid memory access.

There is a mistake that over-access boundary.

This fix it.

@Issues: 178
This commit is contained in:
Hermet Park 2020-12-10 14:16:41 +09:00
parent 932cc65543
commit 462bf277f2

View file

@ -622,7 +622,7 @@ SwSpan* _intersectSpansRegion(const SwRleData *clip, const SwRleData *targetRle,
auto clipEnd = clip->spans + clip->size; auto clipEnd = clip->spans + clip->size;
while (spanCnt > 0 && spans < end ) { while (spanCnt > 0 && spans < end ) {
if (clipSpans > clipEnd) { if (clipSpans == clipEnd) {
spans = end; spans = end;
break; break;
} }