mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 03:55:28 -04:00
catch EOF at reading the next-IFD pointer as EOF marker
This commit is contained in:
parent
a9428a1ecf
commit
0997f5199a
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user