Closed
Description
extern crate regex;
fn main() {
let a = std::str::from_utf8(b"\\B(?-u)|0").unwrap();
let b = std::str::from_utf8(b"\n\xcd\x86").unwrap();
let c = regex::Regex::new(a).unwrap();
c.split(b).collect::<Vec<_>>();
}
thread 'main' panicked at 'byte index 2 is not a char boundary; it is inside '͆' (bytes 1..3) of `
͆`', src/libcore/str/mod.rs:2232:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.
found via afl.rs using this fuzz target
Metadata
Metadata
Assignees
Labels
No labels