mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2026-05-01 00:00:02 -04:00
Test for catching EOF at reading the next-IFD pointer as EOF marker
This commit is contained in:
+7
@@ -276,4 +276,11 @@ public class EXIFReaderTest extends MetadataReaderAbstractTest {
|
|||||||
assertNotNull(interop);
|
assertNotNull(interop);
|
||||||
assertEquals(0, interop.size());
|
assertEquals(0, interop.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testReadExifWithMissingEOFMarker() throws IOException {
|
||||||
|
ImageInputStream stream = ImageIO.createImageInputStream(getResource("/exif/noeof.tif"));
|
||||||
|
createReader().read(stream);
|
||||||
|
stream.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user