Debian Codegraph @

fuzz/fuzz_targets/fuzz_parse_time.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_time;
10
11 fuzz_target!(|data: &[u8]| {
12 if let Ok(s) = std::str::from_utf8(data) {
13 _ = parse_time::from_str(s, true);
14 _ = parse_time::from_str(s, false);
15 }
16 });