Commit f200264d authored by Albert Astals Cid's avatar Albert Astals Cid

FoFiType1C::getDeltaIntArray: Fix undefined inf to int conversion

parent 9bfc10ee
Pipeline #3917 passed with stage
in 7 minutes and 55 seconds
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment