Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env:
AFL_PIZZA_MODE: "-1" # this is sad, I know, but it breaks on a certain spring day otherwise :(
CARGO_TERM_COLOR: always
CARGO_NET_GIT_FETCH_WITH_CLI: true
# FIXME: please unpin macos rust stable toolchain once LLVM is bumped to version 22
MAIN_LLVM_VERSION: 21

concurrency:
Expand Down Expand Up @@ -973,7 +974,7 @@ jobs:
macos:
runs-on: macOS-latest
steps:
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@1.94.1
with:
components: clippy
- name: Install nightly
Expand Down
2 changes: 1 addition & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ clippy:
# Run clippy on.. some things?
[macos]
clippy:
cargo +nightly clippy --tests --all --exclude libafl_nyx --exclude symcc_runtime --exclude runtime_test
cargo clippy --tests --all --exclude libafl_nyx --exclude symcc_runtime --exclude runtime_test
just clippy-excluded

# Run clippy powershell script
Expand Down
22 changes: 13 additions & 9 deletions crates/libafl_frida/src/asan/asan_rt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2666,31 +2666,35 @@ impl AsanRuntime {
//abuse the fact that the last operand is always the mem operand
match instr.operands[operands_len - 1] {
Operand::RegRegOffset(reg1, reg2, size, shift, shift_size) => {
let ret = Some((
// let ret =
Some((
reg1,
Some((reg2, size)),
0,
instruction_width(&instr),
Some((shift, shift_size)),
));
))
// log::trace!("Interesting instruction: {}, {:?}", instr.to_string(), ret);
ret
// ret
}
Operand::RegPreIndex(reg, disp, _) => {
let ret = Some((reg, None, disp, instruction_width(&instr), None));
// let ret =
Some((reg, None, disp, instruction_width(&instr), None))
// log::trace!("Interesting instruction: {}, {:?}", instr.to_string(), ret);
ret
// ret
}
Operand::RegPostIndex(reg, _) => {
//in post index the disp is applied after so it doesn't matter for this memory access
let ret = Some((reg, None, 0, instruction_width(&instr), None));
// let ret =
Some((reg, None, 0, instruction_width(&instr), None))
// log::trace!("Interesting instruction: {}, {:?}", instr.to_string(), ret);
ret
// ret
}
Operand::RegPostIndexReg(reg, _) => {
let ret = Some((reg, None, 0, instruction_width(&instr), None));
// let ret =
Some((reg, None, 0, instruction_width(&instr), None))
// log::trace!("Interesting instruction: {}, {:?}", instr.to_string(), ret);
ret
// ret
}
_ => None,
}
Expand Down
Loading