Github workflows frida build on windows (#536)
* Update build_and_test.yml * Update build_and_test.yml * clippy * clippy * clippy
This commit is contained in:
parent
7dad2153e2
commit
393afa56c8
12
.github/workflows/build_and_test.yml
vendored
12
.github/workflows/build_and_test.yml
vendored
@ -149,8 +149,16 @@ jobs:
|
|||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: clippy
|
command: clippy
|
||||||
#- name: Build frida
|
- name: Install LLVM and Clang # required for bindgen to work, see https://github.com/rust-lang/rust-bindgen/issues/1797
|
||||||
# run: cd fuzzers/frida_libpng/ && cargo build --release
|
uses: KyleMayes/install-llvm-action@32c4866ebb71e0949e8833eb49beeebed48532bd
|
||||||
|
with:
|
||||||
|
version: "12.0"
|
||||||
|
directory: ${{ runner.temp }}/llvm
|
||||||
|
- name: Set LIBCLANG_PATH
|
||||||
|
run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV
|
||||||
|
- name: Build frida
|
||||||
|
run: cd fuzzers/frida_libpng/ && cargo build --release
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
runs-on: macOS-latest
|
runs-on: macOS-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -121,11 +121,9 @@ impl Allocator {
|
|||||||
let base: usize = 2;
|
let base: usize = 2;
|
||||||
// On x64, if end > 2**48, then that's in vsyscall or something.
|
// On x64, if end > 2**48, then that's in vsyscall or something.
|
||||||
#[cfg(target_arch = "x86_64")]
|
#[cfg(target_arch = "x86_64")]
|
||||||
if end <= base.pow(48) {
|
if end <= base.pow(48) && end > userspace_max {
|
||||||
if end > userspace_max {
|
|
||||||
userspace_max = end;
|
userspace_max = end;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// On x64, if end > 2**52, then range is not in userspace
|
// On x64, if end > 2**52, then range is not in userspace
|
||||||
#[cfg(target_arch = "aarch64")]
|
#[cfg(target_arch = "aarch64")]
|
||||||
|
@ -407,11 +407,8 @@ where
|
|||||||
|
|
||||||
/// Pointer to coverage map
|
/// Pointer to coverage map
|
||||||
pub fn map_ptr_mut(&mut self) -> Option<*mut u8> {
|
pub fn map_ptr_mut(&mut self) -> Option<*mut u8> {
|
||||||
if let Some(rt) = self.runtime_mut::<CoverageRuntime>() {
|
self.runtime_mut::<CoverageRuntime>()
|
||||||
Some(rt.map_ptr_mut())
|
.map(CoverageRuntime::map_ptr_mut)
|
||||||
} else {
|
|
||||||
None
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Ranges
|
/// Ranges
|
||||||
|
@ -321,6 +321,7 @@ pub mod pybind {
|
|||||||
impl ForkserverBytesCoverageSugar {
|
impl ForkserverBytesCoverageSugar {
|
||||||
/// Create a new [`ForkserverBytesCoverageSugar`]
|
/// Create a new [`ForkserverBytesCoverageSugar`]
|
||||||
#[new]
|
#[new]
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn new(
|
fn new(
|
||||||
input_dirs: Vec<PathBuf>,
|
input_dirs: Vec<PathBuf>,
|
||||||
output_dir: PathBuf,
|
output_dir: PathBuf,
|
||||||
|
@ -385,6 +385,7 @@ pub mod pybind {
|
|||||||
impl InMemoryBytesCoverageSugar {
|
impl InMemoryBytesCoverageSugar {
|
||||||
/// Create a new [`InMemoryBytesCoverageSugar`]
|
/// Create a new [`InMemoryBytesCoverageSugar`]
|
||||||
#[new]
|
#[new]
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn new(
|
fn new(
|
||||||
input_dirs: Vec<PathBuf>,
|
input_dirs: Vec<PathBuf>,
|
||||||
output_dir: PathBuf,
|
output_dir: PathBuf,
|
||||||
|
@ -449,6 +449,7 @@ pub mod pybind {
|
|||||||
impl QemuBytesCoverageSugar {
|
impl QemuBytesCoverageSugar {
|
||||||
/// Create a new [`QemuBytesCoverageSugar`]
|
/// Create a new [`QemuBytesCoverageSugar`]
|
||||||
#[new]
|
#[new]
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn new(
|
fn new(
|
||||||
input_dirs: Vec<PathBuf>,
|
input_dirs: Vec<PathBuf>,
|
||||||
output_dir: PathBuf,
|
output_dir: PathBuf,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user