[poppler] poppler/Gfx.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Thu Feb 21 10:53:13 PST 2008


 poppler/Gfx.cc |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 88d4bbbcf828e3247454c8ba3c2fb0fb58207b6a
Author: Michael Vrable <mvrable at cs.ucsd.edu>
Date:   Thu Feb 21 19:53:03 2008 +0100

    If a bitmap's dimensions are invalid, do not try to display it.

diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc
index f068088..3ae897e 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -3523,6 +3523,9 @@ void Gfx::doImage(Object *ref, Stream *str, GBool inlineImg) {
     goto err2;
   obj1.free();
 
+  if (width < 1 || height < 1)
+    goto err1;
+
   // image or mask?
   dict->lookup("ImageMask", &obj1);
   if (obj1.isNull()) {


More information about the poppler mailing list