Qemu partial instr fix (#312)

* fix edges hashtable query bug in hook

* fmt

* clippy
This commit is contained in:
Andrea Fioraldi 2021-10-01 14:31:19 +02:00 committed by GitHub
parent f2929b8253
commit 7e176ff292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -91,6 +91,7 @@ pub enum QemuInstrumentationFilter {
}
impl QemuInstrumentationFilter {
#[must_use]
pub fn allowed(&self, addr: u64) -> bool {
match self {
QemuInstrumentationFilter::AllowList(l) => {

View File

@ -8,7 +8,9 @@ pub use libafl_targets::{
EDGES_MAP, EDGES_MAP_SIZE, MAX_EDGES_NUM,
};
use crate::helpers::*;
use crate::helpers::{
QemuCmpLogHelper, QemuEdgeCoverageHelper, QemuHelperTuple, QemuSnapshotHelper,
};
#[derive(Default, Serialize, Deserialize)]
pub struct QemuEdgesMapMetadata {