mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2026-05-01 00:00:02 -04:00
catch EOF at reading the next-IFD pointer as EOF marker
This commit is contained in:
+7
-1
@@ -119,7 +119,13 @@ public final class EXIFReader extends MetadataReader {
|
|||||||
|
|
||||||
if (readLinked) {
|
if (readLinked) {
|
||||||
if (nextOffset == -1) {
|
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
|
// Read linked IFDs
|
||||||
|
|||||||
Reference in New Issue
Block a user