File tree 6 files changed +17
-11
lines changed
6 files changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -149,8 +149,16 @@ jobs:
149
149
uses : actions-rs/cargo@v1
150
150
with :
151
151
command : clippy
152
- # - name: Build frida
153
- # run: cd fuzzers/frida_libpng/ && cargo build --release
152
+ - name : Install LLVM and Clang # required for bindgen to work, see https://github.com/rust-lang/rust-bindgen/issues/1797
153
+ uses : KyleMayes/install-llvm-action@32c4866ebb71e0949e8833eb49beeebed48532bd
154
+ with :
155
+ version : " 12.0"
156
+ directory : ${{ runner.temp }}/llvm
157
+ - name : Set LIBCLANG_PATH
158
+ run : echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV
159
+ - name : Build frida
160
+ run : cd fuzzers/frida_libpng/ && cargo build --release
161
+
154
162
macos :
155
163
runs-on : macOS-latest
156
164
steps :
Original file line number Diff line number Diff line change @@ -121,10 +121,8 @@ impl Allocator {
121
121
let base: usize = 2 ;
122
122
// On x64, if end > 2**48, then that's in vsyscall or something.
123
123
#[ cfg( target_arch = "x86_64" ) ]
124
- if end <= base. pow ( 48 ) {
125
- if end > userspace_max {
126
- userspace_max = end;
127
- }
124
+ if end <= base. pow ( 48 ) && end > userspace_max {
125
+ userspace_max = end;
128
126
}
129
127
130
128
// On x64, if end > 2**52, then range is not in userspace
Original file line number Diff line number Diff line change @@ -407,11 +407,8 @@ where
407
407
408
408
/// Pointer to coverage map
409
409
pub fn map_ptr_mut ( & mut self ) -> Option < * mut u8 > {
410
- if let Some ( rt) = self . runtime_mut :: < CoverageRuntime > ( ) {
411
- Some ( rt. map_ptr_mut ( ) )
412
- } else {
413
- None
414
- }
410
+ self . runtime_mut :: < CoverageRuntime > ( )
411
+ . map ( CoverageRuntime :: map_ptr_mut)
415
412
}
416
413
417
414
/// Ranges
Original file line number Diff line number Diff line change @@ -321,6 +321,7 @@ pub mod pybind {
321
321
impl ForkserverBytesCoverageSugar {
322
322
/// Create a new [`ForkserverBytesCoverageSugar`]
323
323
#[ new]
324
+ #[ allow( clippy:: too_many_arguments) ]
324
325
fn new (
325
326
input_dirs : Vec < PathBuf > ,
326
327
output_dir : PathBuf ,
Original file line number Diff line number Diff line change @@ -385,6 +385,7 @@ pub mod pybind {
385
385
impl InMemoryBytesCoverageSugar {
386
386
/// Create a new [`InMemoryBytesCoverageSugar`]
387
387
#[ new]
388
+ #[ allow( clippy:: too_many_arguments) ]
388
389
fn new (
389
390
input_dirs : Vec < PathBuf > ,
390
391
output_dir : PathBuf ,
Original file line number Diff line number Diff line change @@ -449,6 +449,7 @@ pub mod pybind {
449
449
impl QemuBytesCoverageSugar {
450
450
/// Create a new [`QemuBytesCoverageSugar`]
451
451
#[ new]
452
+ #[ allow( clippy:: too_many_arguments) ]
452
453
fn new (
453
454
input_dirs : Vec < PathBuf > ,
454
455
output_dir : PathBuf ,
You can’t perform that action at this time.
0 commit comments