Test for catching EOF at reading the next-IFD pointer as EOF marker

This commit is contained in:
Oliver Schmidtmer 2016-02-02 00:29:44 +01:00
parent 0997f5199a
commit a709381825
2 changed files with 7 additions and 0 deletions

View File

@ -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();
}
} }