2017-11-13 01:09:59 -06:00
|
|
|
// rustfmt-indent_style: Block
|
2017-05-13 04:20:18 -05:00
|
|
|
|
|
|
|
// #1547
|
2017-05-26 02:36:15 -05:00
|
|
|
fuzz_target!(|data: &[u8]| if let Some(first) = data.first() {
|
|
|
|
let index = *first as usize;
|
|
|
|
if index >= ENCODINGS.len() {
|
|
|
|
return;
|
2017-05-13 04:20:18 -05:00
|
|
|
}
|
2017-05-26 02:36:15 -05:00
|
|
|
let encoding = ENCODINGS[index];
|
|
|
|
dispatch_test(encoding, &data[1..]);
|
2017-05-21 05:56:37 -05:00
|
|
|
});
|