Skip to content
Closed
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
2 changes: 1 addition & 1 deletion crates/libafl_asan/Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ test: test_asan

pretty_rust:
#!/bin/sh
MAIN_LLVM_VERSION=$LLVM_VERSION cargo run --manifest-path ../utils/libafl_repo_tools/Cargo.toml --release -- -v
MAIN_LLVM_VERSION=$LLVM_VERSION cargo run --manifest-path ../../utils/libafl_repo_tools/Cargo.toml --release -- -v

pretty_toml:
#!/bin/sh
Expand Down
6 changes: 4 additions & 2 deletions crates/libafl_asan/src/host/linux.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! # linux
//! The `LinuxHost` supports the established means of interacting with the QEMU
//! emulator on Linux by means of issuing a bespoke syscall.
use core::mem::transmute;

use syscalls::{Errno, Sysno, syscall2, syscall3, syscall4};

Expand Down Expand Up @@ -83,6 +82,9 @@ impl LinuxHost {
const SYSCALL_NO: u32 = 0xa2a4;

pub fn sysno() -> Sysno {
unsafe { transmute(Self::SYSCALL_NO) }
let mut ret = Sysno::read;
let ptr = &mut ret as *mut Sysno as *mut u32;
unsafe { *ptr = Self::SYSCALL_NO };
ret
}
}
Loading