mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
sw_engine SwShape: Prevent null access
strokeOutline returned strokeExportOutline() is the address of mpool->strokeOutline[idx]. Assuming this value is null, mpoolRetStrokeOutline on line 617 will access mpool->strokeOutline[idx]. Logically, the logic of the mpool* functions does not occur in this case.
This commit is contained in:
parent
45132a7051
commit
c326b6ac3e
1 changed files with 0 additions and 4 deletions
|
@ -594,10 +594,6 @@ bool shapeGenStrokeRle(SwShape* shape, const Shape* sdata, const Matrix* transfo
|
||||||
}
|
}
|
||||||
|
|
||||||
strokeOutline = strokeExportOutline(shape->stroke, mpool, tid);
|
strokeOutline = strokeExportOutline(shape->stroke, mpool, tid);
|
||||||
if (!strokeOutline) {
|
|
||||||
ret = false;
|
|
||||||
goto fail;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!mathUpdateOutlineBBox(strokeOutline, clipRegion, renderRegion, false)) {
|
if (!mathUpdateOutlineBBox(strokeOutline, clipRegion, renderRegion, false)) {
|
||||||
ret = false;
|
ret = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue