[poppler] fofi/FoFiType1C.cc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Aug 31 18:10:27 UTC 2018
fofi/FoFiType1C.cc | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit f200264ddb0a16f54ae2711f399867e659957b1d
Author: Albert Astals Cid <aacid at kde.org>
Date: Fri Aug 31 20:03:36 2018 +0200
FoFiType1C::getDeltaIntArray: Fix undefined inf to int conversion
diff --git a/fofi/FoFiType1C.cc b/fofi/FoFiType1C.cc
index 643bc9e1..ebf68a44 100644
--- a/fofi/FoFiType1C.cc
+++ b/fofi/FoFiType1C.cc
@@ -2665,6 +2665,9 @@ int FoFiType1C::getDeltaIntArray(int *arr, int maxLen) {
x = 0;
for (i = 0; i < n; ++i) {
int y;
+ if (unlikely(isinf(ops[i].num))) {
+ return i;
+ }
if (checkedAdd(x, (int)ops[i].num, &y)) {
return i;
}
More information about the poppler
mailing list