mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
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:
parent
932cc65543
commit
462bf277f2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue