mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 20:15:28 -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);
|
||||
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