[poppler] poppler/JBIG2Stream.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Fri Apr 10 15:26:51 PDT 2009


 poppler/JBIG2Stream.cc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c399b2d512aa073b0d7cd8eb5413a4b43f0d6aef
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Apr 11 00:26:23 2009 +0200

    Revert part of last commit, i need more math classes :D

diff --git a/poppler/JBIG2Stream.cc b/poppler/JBIG2Stream.cc
index 31c829a..938927e 100644
--- a/poppler/JBIG2Stream.cc
+++ b/poppler/JBIG2Stream.cc
@@ -707,7 +707,7 @@ JBIG2Bitmap::JBIG2Bitmap(Guint segNumA, int wA, int hA):
     return;
   }
   // need to allocate one extra guard byte for use in combine()
-  data = (Guchar *)gmallocn(h, line + 1);
+  data = (Guchar *)gmalloc(h * line + 1);
   data[h * line] = 0;
 }
 
@@ -724,7 +724,7 @@ JBIG2Bitmap::JBIG2Bitmap(Guint segNumA, JBIG2Bitmap *bitmap):
     return;
   }
   // need to allocate one extra guard byte for use in combine()
-  data = (Guchar *)gmallocn(h, line + 1);
+  data = (Guchar *)gmalloc(h * line + 1);
   memcpy(data, bitmap->data, h * line);
   data[h * line] = 0;
 }


More information about the poppler mailing list