зеркало из https://github.com/mozilla/pjs.git
Bug 414188 - Divide by zero with degenerate tile reference. r+sr=tor,a1.9=mtschrep
This commit is contained in:
Родитель
e67d9f3bc5
Коммит
7702f90870
|
@ -2927,6 +2927,9 @@ nsSVGFETileElement::Filter(nsSVGFilterInstance *instance)
|
||||||
#endif
|
#endif
|
||||||
nsRect tile = fr.GetSourceRegion();
|
nsRect tile = fr.GetSourceRegion();
|
||||||
|
|
||||||
|
if (tile.width == 0 || tile.height == 0)
|
||||||
|
return NS_OK;
|
||||||
|
|
||||||
for (PRInt32 y = rect.y; y < rect.YMost(); y++) {
|
for (PRInt32 y = rect.y; y < rect.YMost(); y++) {
|
||||||
PRUint32 tileY = tile.y + (y - tile.y + tile.height) % tile.height;
|
PRUint32 tileY = tile.y + (y - tile.y + tile.height) % tile.height;
|
||||||
for (PRInt32 x = rect.x; x < rect.XMost(); x++) {
|
for (PRInt32 x = rect.x; x < rect.XMost(); x++) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче