Skip to content

Commit

Permalink
DDFuzz (#2056)
Browse files Browse the repository at this point in the history
* push

* add

* book

* ddg

* works
  • Loading branch information
tokatoka authored Apr 16, 2024
1 parent bc3ef59 commit 8bce605
Show file tree
Hide file tree
Showing 9 changed files with 1,053 additions and 7 deletions.
11 changes: 11 additions & 0 deletions libafl_cc/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,17 @@ pub const LIBAFL_CC_LLVM_VERSION: Option<usize> = None;
ldflags.push(&sdk_path);
};

build_pass(
bindir_path,
out_dir,
&cxxflags,
&ldflags,
src_dir,
"ddg-instr.cc",
Some(&vec!["ddg-utils.cc"]),
false,
);

for pass in &[
"cmplog-routines-pass.cc",
"autotokens-pass.cc",
Expand Down
5 changes: 5 additions & 0 deletions libafl_cc/src/clang.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ pub enum LLVMPasses {
CmpLogInstructions,
/// Instrument caller for sancov coverage
Ctx,
/// Data dependency instrumentation
DDG,
}

impl LLVMPasses {
Expand All @@ -64,6 +66,9 @@ impl LLVMPasses {
LLVMPasses::Ctx => {
PathBuf::from(env!("OUT_DIR")).join(format!("ctx-pass.{}", dll_extension()))
}
LLVMPasses::DDG => {
PathBuf::from(env!("OUT_DIR")).join(format!("ddg-instr.{}", dll_extension()))
}
}
}
}
Expand Down
Loading

0 comments on commit 8bce605

Please sign in to comment.