mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 02:42:38 +00:00
Add simple fuzz tests for hashing and boolean-bitfield
This commit is contained in:
9
eth2/utils/hashing/fuzz/fuzz_targets/fuzz_target_hash.rs
Normal file
9
eth2/utils/hashing/fuzz/fuzz_targets/fuzz_target_hash.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
#![no_main]
|
||||
#[macro_use] extern crate libfuzzer_sys;
|
||||
extern crate hashing;
|
||||
|
||||
use hashing::hash;
|
||||
|
||||
fuzz_target!(|data: &[u8]| {
|
||||
let _result = hash(data);
|
||||
});
|
||||
Reference in New Issue
Block a user