infinite loop in ICODecoder
Brought to you by:
ianmdev
hi,
there is an infinite loop in ICODecoder at the following lines:
while (skipped < s) {
if (skipped < 0) {
throw new IOException("Failed to read [skip]");
}
s = skip - skipped;
skipped = in.skipBytes(s);
}
when skipped is always zero and the loop does not terminate. It occurs on some defect inputs; would be nice if an exception could be thrown instead, ..., which is perhaps intended with the (skipped < 0) condition, but actually, skipped may be zero,
kind regards,
manfred
This problem should now be resolved.
Latest sources are now available at https://github.com/imcdonagh/image4j.