зеркало из https://github.com/mozilla/gecko-dev.git
bug 119042, crash when dividing 0 by 1
r=bstell@ix.netcom.com, sr/a=brendan@mozilla.org,
This commit is contained in:
Родитель
e036a5db20
Коммит
d16b06dced
|
@ -998,7 +998,7 @@ scale_imageAntiJag(nsAntiAliasedGlyph *aSrc, nsAntiAliasedGlyph *aDst)
|
||||||
NS_ASSERTION(aDst->GetBorder()==0, "non zero dest border not supported");
|
NS_ASSERTION(aDst->GetBorder()==0, "non zero dest border not supported");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int expand = (((dst_width<<8)/aSrc->GetWidth())+255)>>8;
|
PRUint32 expand = (((dst_width<<8)/aSrc->GetWidth())+255)>>8;
|
||||||
|
|
||||||
PRUint32 src_width = aSrc->GetWidth();
|
PRUint32 src_width = aSrc->GetWidth();
|
||||||
PRUint32 src_height = aSrc->GetHeight();
|
PRUint32 src_height = aSrc->GetHeight();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче