mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-10-03 23:53:15 -04:00
catch EOF at reading the next-IFD pointer as EOF marker
This commit is contained in:
@@ -119,7 +119,13 @@ public final class EXIFReader extends MetadataReader {
|
||||
|
||||
if (readLinked) {
|
||||
if (nextOffset == -1) {
|
||||
nextOffset = pInput.readUnsignedInt();
|
||||
try {
|
||||
nextOffset = pInput.readUnsignedInt();
|
||||
}
|
||||
catch (EOFException e) {
|
||||
// catch EOF here as missing EOF marker
|
||||
nextOffset = 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Read linked IFDs
|
||||
|
Reference in New Issue
Block a user