jpg image hitting an endless loop in jpegReader::nextMarker
smurfless1 opened this issue · comments
I have an image from a Nikon scanner that's somehow hitting an endless loop in the nextMarker method. jr.err = nil, and jr.pos = 0, it's passing the isMarkerFirstByte check, failing the isSOIMarker check, and then as jr.pos is still 0, the loop continues indefinitely.
The nature of this loop means I can't recover from this situation without changing the code in some possibly unhelpful way, like naively setting a max loop count or something like that. Someone want to take a whack at figuring out the correct way to limit this loop?
ok, that attach didn't do QUITE what I wanted, but I can provide the file or some of the header on request.
Kindly send the file and I will take a look. Thanks.
@smurfless1 please check your file with the bug fix. Please open the issue if unresolved.