From 3f1c9367c30be355163f6badd1f8ea0136c519ee Mon Sep 17 00:00:00 2001 From: "longsonr%gmail.com" Date: Tue, 3 Jul 2007 09:16:50 +0000 Subject: [PATCH] Bug 385228 - ASSERTION: Surface size too large (would overflow) - change asserts to warnings. r+sr=vladimir git-svn-id: svn://10.0.0.236/trunk@229232 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/gfx/thebes/src/gfxASurface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/gfx/thebes/src/gfxASurface.cpp b/mozilla/gfx/thebes/src/gfxASurface.cpp index cd3a9d1f3dd..314cf54721f 100644 --- a/mozilla/gfx/thebes/src/gfxASurface.cpp +++ b/mozilla/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; }