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