-
Notifications
You must be signed in to change notification settings - Fork 79
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
TIFF module should check for overlapping tag data #105
Comments
@asciim0 you mentioned TIFF in the kick-off meeting today. I was wondering if you had any thoughts about this ticket? Two things that would be a great help:
|
I have recently seen some real world files that would raise this error (and do raise it in DPFManager) but can't share them. I could create a minimal synthetic example though if you do not already have one. Interested? |
@marhop that would be awesome if you have time! |
OK. Just give me some days, one week max. |
Done. Here are two example files (source) that should raise this error. The first has duplicate pointers in the XResolution and YResolution fields, both referencing the same offset (which would make a little sense if legal because they both use the same value). This error is detected by both DPFManager 3.5.1 and ExifTool 11.98, but not by JHOVE 1.24. The second has duplicate pointers in the StripOffsets field, repeating the same offset four times to produce a sequence of repeated image data. This error is detected by neither DPFManager nor ExifTool nor JHOVE. I'm pretty confident though that this is indeed an error that should be detected. (It's just maybe not very likely to see this in real life because why would anyone do that?! Except as an eccentric compression method of course.) Hope that helps, PS: Both files raise some other errors in both DPFManager and ExifTool (but not JHOVE). I think though that these are rather bugs in the tools and not in the files, so never mind. (I already filed issues for these problems.) |
Thanks very much @marhop, that's appreciated. |
Dev Effort
1D
Description
The TIFF specification says: "No data should be referenced from more than one place.TIFF readers and editors are under no obligation to detect this condition and handle it properly. This would not be a problem if TIFF files were read-only entities, but they are not. This warning covers both TIFF field value offsets and fields that are defined as offsets, such as StripOffsets."
The TIFF module doesn't currently check this, and some TIFF files cheat on this point, e.g., by using the same data storage for X and Y resolution if they're the same. Since this is a violation of the spec with regard to file structure, this should really be checked. We have a request for this check.
The text was updated successfully, but these errors were encountered: