tvl-depot/users/zseri/store-ref-scanner/fuzz/fuzz_targets/hbm-roundtrip.rs
zseri d6b0aca7dd chore(zseri/store-ref-scanner): use tailored fuzz input
Change-Id: Ib061154c2329432469e8f7bef4598402a56bd0c3
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4606
Reviewed-by: zseri <zseri.devel@ytrizja.de>
Tested-by: BuildkiteCI
2021-12-25 05:14:47 +00:00

10 lines
254 B
Rust

#![no_main]
use libfuzzer_sys::fuzz_target;
fuzz_target!(|data: [u8; 16]| {
use store_ref_scanner::HalfBytesMask;
let a = HalfBytesMask(data);
let b = a.into_expanded();
let c = HalfBytesMask::from_expanded(b);
assert_eq!(a, c);
});