Try to read multiple images in fuzzer
This commit is contained in:
1 parent
420667955a
commit
2f6ad07f28
1 file changed
+9
-1
@@ -15,5 +15,13 @@ fuzz_target!(|data: &[u8]| {
|
|||||||
|
|
||||||
decoder = decoder.with_limits(limits);
|
decoder = decoder.with_limits(limits);
|
||||||
|
|
||||||
let _ = decoder.read_image();
|
loop {
|
||||||
|
if let Err(_) = decoder.read_image() {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if !decoder.more_images() {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user