poppler/UnicodeTypeTable.cc |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit 9d12de9b59de4336eabb423f7bf0363b6a35e2a8
Author: Albert Astals Cid <[EMAIL PROTECTED]>
Date:   Wed Nov 5 20:00:01 2008 +0100

    Fix crash in case indices is NULL
    
    Putting more than one "logical line" per "real line" is evil, we think if 
will group it, but does not

diff --git a/poppler/UnicodeTypeTable.cc b/poppler/UnicodeTypeTable.cc
index 3300f21..c0483a5 100644
--- a/poppler/UnicodeTypeTable.cc
+++ b/poppler/UnicodeTypeTable.cc
@@ -1167,8 +1167,11 @@ Unicode *unicodeNormalizeNFKC(Unicode *in, int len,
            break;
          u = out[r]; out[r] = out[r - 1]; out[r - 1] = u;
          swap = classes[r]; classes[r] = classes[r - 1]; classes[r - 1] = swap;
-         if (indices)
-           swap = idx[r]; idx[r] = idx[r - 1]; idx[r - 1] = swap;
+         if (indices) {
+           swap = idx[r]; 
+           idx[r] = idx[r - 1];
+           idx[r - 1] = swap;
+         }
        }
       // canonical compose out[o, p)
       for (q = o + 1; q < p; ++q)
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to