Skip to content
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

Issues with JPEG2000 validation #16

Open
friesey opened this issue May 12, 2015 · 1 comment
Open

Issues with JPEG2000 validation #16

friesey opened this issue May 12, 2015 · 1 comment
Labels
feature New functionality to be developed good-first-issue Issue suitable for inexperienced developers P2 Medium priority issues to be scheduled in a future release

Comments

@friesey
Copy link
Contributor

friesey commented May 12, 2015

Hello Folks,
sample test have shown that JHOVE cannot cope with certain JPEG2000-files.
If selecting the JPEG2000-module, the JHOVE GUI version will not show findings. For the JHOVE-library, the error is: java.io.EOFException in the code line: jb.process(app, module, handler, files.get(i).toString());

I have example files:
The [Jplyzer testfiles] https://github.com/openpreserve/jpylyzer-test-files/blob/master/bitwiser-icc-corrupted-tagcount-1951.jp2 do not work with JHOVE:

The jpeg2000 from the [google image testsuite] https://drive.google.com/file/d/0B9lJIDXo2oPYZlNnVnRKRFdwVDg/edit do work with JHOVE.

I have not yet found the difference betweent the two of them Jplyzer can cope with them all so far.
Best, Yvonne

@bitsgalore
Copy link
Member

Haven't looked in JHOVE's source code, but my guess is that it simply takes the tagCount field in the ICC profile at face value. If that field is corrupted (as is the case for the image that causes the error), tagCount can assume some ridiculously large value, which can lead to all sorts of trouble.

This used to be a problem in older versions of jpylyzer as well, which I fixed there by imposing an (arbitrary) upper limit on tagCount. More details here:

openpreserve/jpylyzer#31

So I suppose something similar could be done in JHOVE.

@ghost ghost added the feature New functionality to be developed label Mar 7, 2019
@carlwilson carlwilson added good-first-issue Issue suitable for inexperienced developers P2 Medium priority issues to be scheduled in a future release labels Jun 16, 2023
@carlwilson carlwilson added this to the OPF Hackathon 2023 Tasks milestone Jun 16, 2023
@carlwilson carlwilson removed this from the OPF Hackathon 2023 Tasks milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality to be developed good-first-issue Issue suitable for inexperienced developers P2 Medium priority issues to be scheduled in a future release
Projects
Status: No status
Development

No branches or pull requests

3 participants