Debian Codegraph @

fuzz/fuzz_targets/fuzz_parse_size.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 uucore::parser::parse_size::parse_size_u64;
10
11 fuzz_target!(|data: &[u8]| {
12 if let Ok(s) = std::str::from_utf8(data) {
13 _ = parse_size_u64(s);
14 }
15 });