mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 12:44:40 +00:00
10 lines
243 B
Rust
10 lines
243 B
Rust
|
// #1547
|
||
|
fuzz_target!(|data: &[u8]| if let Some(first) = data.first() {
|
||
|
let index = *first as usize;
|
||
|
if index >= ENCODINGS.len() {
|
||
|
return;
|
||
|
}
|
||
|
let encoding = ENCODINGS[index];
|
||
|
dispatch_test(encoding, &data[1..]);
|
||
|
});
|