Merge "keystore2_unsafe_fuzzer: Bug Fix" into main

This commit is contained in:
Treehugger Robot 2023-08-17 15:45:27 +00:00 committed by Gerrit Code Review
commit e6dfdf59af
2 changed files with 0 additions and 12 deletions

View file

@ -20,7 +20,6 @@ rust_fuzz {
name: "keystore2_unsafe_fuzzer",
srcs: ["keystore2_unsafe_fuzzer.rs"],
rustlibs: [
"libbinder_rs",
"libkeystore2",
"libkeystore2_crypto_rust",
"libkeystore2_hal_names_rust",

View file

@ -16,7 +16,6 @@
#![no_main]
use binder::get_declared_instances;
use keystore2::{legacy_blob::LegacyBlobLoader, utils::ui_opts_2_compat};
use keystore2_aaid::get_aaid;
use keystore2_apc_compat::ApcHal;
@ -94,10 +93,6 @@ enum FuzzCommand<'a> {
minor_version: usize,
hidl_interface_name: &'a str,
},
GetAidlInstances {
aidl_package: &'a str,
aidl_interface_name: &'a str,
},
GetAaid {
aaid_uid: u32,
},
@ -189,12 +184,6 @@ fuzz_target!(|commands: Vec<FuzzCommand>| {
} => {
get_hidl_instances(hidl_package, major_version, minor_version, hidl_interface_name);
}
FuzzCommand::GetAidlInstances { aidl_package, aidl_interface_name } => {
get_declared_instances(
format!("{}.{}", aidl_package, aidl_interface_name).as_str(),
)
.unwrap();
}
FuzzCommand::GetAaid { aaid_uid } => {
let _res = get_aaid(aaid_uid);
}