lilth2 opened a new pull request, #564: URL: https://github.com/apache/commons-imaging/pull/564
Imaging.getImageInfo() fails on the JPEG attached to IMAGING-240 because its EXIF subdirectory ends after the last complete entry, without the four-byte next-directory offset. This prevents reading the image information even though the JPEG dimensions are available. In non-strict classic TIFF parsing, treat an incomplete, unused EXIF subdirectory footer as the end of the directory chain, preserve the parsed fields, and record a format-compliance comment. Strict parsing, root-directory parsing, and BigTIFF retain their existing behavior; general I/O exceptions are not suppressed. Regression coverage includes the reported 731 x 727 JPEG, preservation of EXIF entries, strict rejection, a complete footer, truncated root rejection, one to three remaining footer bytes, and big-endian EXIF data. Issue: https://issues.apache.org/jira/browse/IMAGING-240 Validation: default `mvn` completed successfully on OpenJDK 23.0.2 and Maven 3.9.16 at f767bcfb4c97124922878e3d8ec9c1644f11e810. Tests run: 1,268; failures: 0; errors: 0; skipped: 7. The complete default build, including RAT, Checkstyle, SpotBugs, PMD, and Javadoc, passed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
