forge
Explore
Log in

Don't you dare go Hollow

edith_codecs

Clone
★ 0

0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits

tiff.rs17 lines, 497 bytesHistoryRawDownload
1#![no_main]
2
3use ec_image::Limits;
4use libfuzzer_sys::fuzz_target;
5
6// The tiff module's own entry points, called directly so the format signature check in the
7// dispatcher does not filter the input first. Header parse, then a decode under small limits.
8const LIMITS: Limits = Limits {
9 max_pixels: 4096 * 4096,
10 max_alloc: 1 << 26,
11 max_total_alloc: 1 << 27,
12};
13
14fuzz_target!(|data: &[u8]| {
15 let _ = ec_image::tiff::info(data);
16 let _ = ec_image::tiff::decode(data, LIMITS);
17});