Debian Codegraph @

fuzz/fuzz_targets/fuzz_seq_parse_number.rs

raw
1 // This file is part of the uutils coreutils package.
2 //
3 // For the full copyright and license information, please view the LICENSE
4 // file that was distributed with this source code.
5
6 #![no_main]
7
8 use libfuzzer_sys::fuzz_target;
9 use std::str::FromStr;
10 use uu_seq::number::PreciseNumber;
11
12 fuzz_target!(|data: &[u8]| {
13 if let Ok(s) = std::str::from_utf8(data) {
14 let _ = PreciseNumber::from_str(s);
15 }
16 });