Skip to content

Instantly share code, notes, and snippets.

View CosmicHorrorDev's full-sized avatar
🐙

CosmicHorror CosmicHorrorDev

🐙
View GitHub Profile
@CosmicHorrorDev
CosmicHorrorDev / fuzz-fuzz_targets-sanity.rs
Created January 13, 2023 01:41
Console windows ansi parsing fuzz target
#![no_main]
use blah::{new, old};
use libfuzzer_sys::fuzz_target;
fuzz_target!(|data: &[u8]| {
if let Ok(s) = std::str::from_utf8(data) {
assert_eq!(new::output(s), old::output(s));
}
});