mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-05 04:25:29 -04:00
Test for catching EOF at reading the next-IFD pointer as EOF marker
This commit is contained in:
parent
0997f5199a
commit
a709381825
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
BIN
imageio/imageio-metadata/src/test/resources/exif/noeof.tif
Normal file
BIN
imageio/imageio-metadata/src/test/resources/exif/noeof.tif
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user