-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infinite Loop Reading Image #7
Comments
Do you have a copy of the Or is the problem with bit stuffing..? It assumes |
The PDF that was trying to extract the first image was this: 00006567119070520-1-original.pdf |
I have been experiencing this issue as well. |
I have pr up to prevent the infinite loop from happening on the codice fork of the project here codice#3 |
This is the j2k file that was causing the issue for me. I gave it a pdf extension so github would let me upload it. |
Seems to have been merged, so this can be closed now? |
I have a PDF file where I can see a similar issue. I use PDFBox to extract an embedded image in JPEG2000 format, but it gets stuck in infinite loop in:
I have tried the patch from the other fork where it's supposed to be fixed (https://github.com/codice/jai-imageio-jpeg2000), but it didn't work for me. The PDF looks fine when I look at it in Adobe. Sample file is attached: |
I'm using jpedal to get an image of a pdf and where jpedal tries to read the imagen it's enter in an infinite
loop.
https://github.com/jai-imageio/jai-imageio-jpeg2000/blob/master/src/main/java/jj2000/j2k/codestream/reader/PktDecoder.java#L1028
Execution Code:
The text was updated successfully, but these errors were encountered: