feat: patch chrono
This commit is contained in:
10
javascript-engine/external/chrono/fuzz/fuzz_targets/fuzz_reader.rs
vendored
Normal file
10
javascript-engine/external/chrono/fuzz/fuzz_targets/fuzz_reader.rs
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
#![no_main]
|
||||
use libfuzzer_sys::fuzz_target;
|
||||
|
||||
fuzz_target!(|data: &[u8]| {
|
||||
use chrono::prelude::*;
|
||||
if let Ok(data) = std::str::from_utf8(data) {
|
||||
let _ = DateTime::parse_from_rfc2822(data);
|
||||
let _ = DateTime::parse_from_rfc3339(data);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user