Resolved PR comments and added more fuzz targets.

This commit is contained in:
mingxguo27
2020-09-29 16:30:41 +00:00
parent 8231c89207
commit f79a659e69
8 changed files with 110 additions and 29 deletions

View File

@@ -1,9 +1,11 @@
#![no_main]
use fuzz_helper::{process_input, InputType};
use fuzz_helper::{process_ctap_specific_type, InputType};
use libfuzzer_sys::fuzz_target;
// Fuzz inputs as CTAP1 U2F raw message.
// Fuzz inputs as CTAP1 U2F raw messages.
// For a more generic fuzz target including all CTAP commands, you can use
// fuzz_target_process_ctap_command.
fuzz_target!(|data: &[u8]| {
process_input(data, InputType::Ctap1);
process_ctap_specific_type(data, InputType::Ctap1);
});