[poppler] poppler/UnicodeTypeTable.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Wed Nov 5 11:01:20 PST 2008
poppler/UnicodeTypeTable.cc | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 9d12de9b59de4336eabb423f7bf0363b6a35e2a8
Author: Albert Astals Cid <aacid at kde.org>
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)
More information about the poppler
mailing list