fix: single \r will be consider as blank line

This commit is contained in:
PoiScript 2023-11-14 11:46:26 +08:00
parent b6e86a128a
commit a269f2f258
No known key found for this signature in database
GPG key ID: 22C2B1249D99985E
23 changed files with 101 additions and 305 deletions

View file

@ -1,11 +1,7 @@
#![no_main]
use libfuzzer_sys::fuzz_target;
use orgize::syntax::{HtmlHandler, Org};
use std::str;
fuzz_target!(|data: &[u8]| {
if let Ok(utf8) = str::from_utf8(data) {
let _ = Org::parse(utf8);
libfuzzer_sys::fuzz_target!(|data: &[u8]| {
if let Ok(utf8) = std::str::from_utf8(data) {
let _ = orgize::Org::parse(utf8);
}
});