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

False positive PDF-HUL-110 "Invalid object number or object stream" when Dictionary contains /Extend ? #674

Open
asciim0 opened this issue Apr 20, 2021 · 1 comment
Assignees
Labels
bug A product defect that needs fixing P1 High priority issues to be scheduled in the upcoming release
Milestone

Comments

@asciim0
Copy link
Contributor

asciim0 commented Apr 20, 2021

Unfortunately I cannot share the problematic file, but JHOVE throws an error
PDF-HUL-110 "Invalid object number or object stream"
on a stream object whose dictionary looks standard conformant. All stream-objects within the PDF can be uncompressed via qpdf --stream-data=uncompress, I therefore do not suspect an error within the object stream itself.

Looking at the object that the offset is reported for, it contains an /Extend entry:

<</Extends 34 0 R/Filter/FlateDecode/First 281/Length 1948/N 32/Type/ObjStm>>stream

That's not a problem and obj 34 is a stream object itself that looks valid.
I have the suspicion that the /Extend entry causes a false positive for this error.

@carlwilson carlwilson self-assigned this Jun 16, 2022
@carlwilson carlwilson added bug A product defect that needs fixing P1 High priority issues to be scheduled in the upcoming release labels Jun 16, 2022
@carlwilson carlwilson added this to the JHOVE 1.28 milestone Jun 16, 2022
@carlwilson carlwilson modified the milestones: JHOVE 1.28, OPF Hackathon 2023 Tasks Jun 21, 2023
@carlwilson carlwilson removed this from the OPF Hackathon 2023 Tasks milestone Mar 6, 2024
@carlwilson carlwilson added this to the JHOVE 1.34 milestone Aug 22, 2024
@asciim0
Copy link
Contributor Author

asciim0 commented Aug 26, 2024

I'm still encountering this, however, with other PDF-hul error messages. Most recently a PDF-hul 2 "Invalid destination object", but the dictionary looked the same:
<< /Extends 18843 0 R /Filter /FlateDecode /First 354 /Length 1534 /N 33 /Type /ObjStm >>

@carlwilson - is it true that this can appear for different PDF-hul errors? I guess the original PDF-hul 110 might have gotten shifted to PDF-hul 2 somewhere between April 2021 and today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A product defect that needs fixing P1 High priority issues to be scheduled in the upcoming release
Projects
Status: No status
Development

No branches or pull requests

2 participants