Skip to content

Commit

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

* add

* book

* ddg

* works
  • Loading branch information
tokatoka committed Apr 16, 2024
1 parent eb3107a commit 0327e56
Show file tree
Hide file tree
Showing 8 changed files with 1,050 additions and 3 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
7 changes: 7 additions & 0 deletions libafl_cc/src/clang.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ pub enum LLVMPasses {
Ctx,
/// Instrument memory access
Memory,
/// Data dependency instrumentation
DDG,
}

impl LLVMPasses {
Expand All @@ -66,8 +68,13 @@ impl LLVMPasses {
LLVMPasses::Ctx => {
PathBuf::from(env!("OUT_DIR")).join(format!("ctx-pass.{}", dll_extension()))
}
<<<<<<< HEAD
LLVMPasses::Memory => {
PathBuf::from(env!("OUT_DIR")).join(format!("mem-ac-pass.{}", dll_extension()))
=======
LLVMPasses::DDG => {
PathBuf::from(env!("OUT_DIR")).join(format!("ddg-instr.{}", dll_extension()))
>>>>>>> 8bce6055 (DDFuzz (#2056))
}
}
}
Expand Down
Loading

0 comments on commit 0327e56

Please sign in to comment.