16 lines
354 B
Rust
16 lines
354 B
Rust
// rustfmt-fn_call_style: Block
|
|
|
|
// #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..]);
|
|
}
|
|
}
|
|
);
|