[poppler] poppler/TextOutputDev.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sat Dec 1 11:09:59 PST 2012


 poppler/TextOutputDev.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5daa17c013be8ebe180ff48207e189bd9bd50a84
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Dec 1 20:06:17 2012 +0100

    Initialize to NULL, fixes crash
    
    Since the TextStringToUCS4 not always assigns to second param, initialize uni to NULL

diff --git a/poppler/TextOutputDev.cc b/poppler/TextOutputDev.cc
index 1706394..bc1eb6d 100644
--- a/poppler/TextOutputDev.cc
+++ b/poppler/TextOutputDev.cc
@@ -5218,7 +5218,7 @@ void ActualText::end(GfxState *state) {
   // extents of all the glyphs inside the span
 
   if (actualTextNBytes) {
-    Unicode *uni;
+    Unicode *uni = NULL;
     int length;
 
     // now that we have the position info for all of the text inside


More information about the poppler mailing list