Merge read_tiled_image and read_stripped_image
This commit is contained in:
1 parent
f25530adec
commit
dc8311fb99
3 files changed
+75
-102
No files matched your search
@@ -324,7 +324,7 @@ fn test_too_many_value_bytes() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_bad_strip_count() {
|
||||
fn fuzzer_testcase5() {
|
||||
let image = [
|
||||
73, 73, 42, 0, 8, 0, 0, 0, 8, 0, 0, 1, 4, 0, 1, 0, 0, 0, 100, 0, 0, 0, 1, 1, 4, 0, 1, 0, 0,
|
||||
0, 158, 0, 0, 251, 3, 1, 3, 0, 1, 0, 0, 0, 1, 0, 0, 0, 6, 1, 3, 0, 1, 0, 0, 0, 0, 0, 0, 0,
|
||||
@@ -335,12 +335,7 @@ fn test_bad_strip_count() {
|
||||
|
||||
let mut decoder = tiff::decoder::Decoder::new(std::io::Cursor::new(&image)).unwrap();
|
||||
|
||||
let err = decoder.read_image().unwrap_err();
|
||||
|
||||
match err {
|
||||
tiff::TiffError::IntSizeError => {}
|
||||
unexpected => panic!("Unexpected error {}", unexpected),
|
||||
}
|
||||
let _ = decoder.read_image().unwrap_err();
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in new issue
Block a user