From c6d03fa5238d32f5f1503c529d5944da8382f33d Mon Sep 17 00:00:00 2001 From: "longsonr@gmail.com" Date: Tue, 3 Jul 2007 02:16:50 -0700 Subject: [PATCH] Bug 385228 - ASSERTION: Surface size too large (would overflow) - change asserts to warnings. r+sr=vladimir --- gfx/thebes/src/gfxASurface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gfx/thebes/src/gfxASurface.cpp b/gfx/thebes/src/gfxASurface.cpp index cd3a9d1f3dde..314cf54721f4 100644 --- a/gfx/thebes/src/gfxASurface.cpp +++ b/gfx/thebes/src/gfxASurface.cpp @@ -274,21 +274,21 @@ PRBool gfxASurface::CheckSurfaceSize(const gfxIntSize& sz, PRInt32 limit) { if (sz.width < 0 || sz.height < 0) { - NS_ERROR("Surface width or height < 0!"); + NS_WARNING("Surface width or height < 0!"); return PR_FALSE; } // check to make sure we don't overflow a 32-bit PRInt32 tmp = sz.width * sz.height; if (tmp && tmp / sz.height != sz.width) { - NS_ERROR("Surface size too large (would overflow)!"); + NS_WARNING("Surface size too large (would overflow)!"); return PR_FALSE; } // always assume 4-byte stride tmp = tmp * 4; if (tmp && tmp / 4 != sz.width * sz.height) { - NS_ERROR("Surface size too large (would overflow)!"); + NS_WARNING("Surface size too large (would overflow)!"); return PR_FALSE; }