Open matthias-fratz-bsz opened 1 year ago
The original example only works against JHove 1.20.0 with some old version of PDF-hul. Sorry, my fault for not testing against latest...
Anyway, here jhove_npe_1224.zip is an updated version that also causes NPE on JHOVE 1.28.0 and PDF-hul 1.12.4. The ID is from the original file: Not sure why it was written like that (hex string would have been shorter), but it seems to be valid according to the PDF standard.
Thanks for the report. There are a couple of issues that are similar. The pointers and examples you've given will help us to track this down, I think.
We have several files that trigger the following NullPointerException:
I cannot share the offending files, but jhove_npe.zip is a synthetic example I made that also triggers the NPE. It seems to be related to escaped characters in the file's trailer dictionary's
/ID
entry:\376\377\377\377
causes NPE, while\377\377\377\377
reports "Valid and well-formed". Various combinations around\3xx
work or don't work; I was unable to investigate this further.