David CARLIER
0d7d52decf
afl_cc fix build for LLVM 17 ( #1286 )
2023-05-22 12:42:56 +02:00
Dongjia "toka" Zhang
52557aefdd
Fix #1276
2023-05-17 15:39:21 +02:00
Dongjia "toka" Zhang
3fd5671909
add ( #1276 )
2023-05-17 15:22:49 +02:00
Dongjia "toka" Zhang
66127d8492
Revert "Don't pass LLVM pass & its args during linking ( #1274 )" ( #1275 )
...
This reverts commit efc5756e3fac9ed3b82e6d82b770b578b47b42d0.
2023-05-17 14:53:17 +02:00
Dongjia "toka" Zhang
efc5756e3f
Don't pass LLVM pass & its args during linking ( #1274 )
2023-05-17 14:32:56 +02:00
Dongjia "toka" Zhang
b7c1591b00
Linking arguments for LLVM passes ( #1273 )
2023-05-17 13:53:02 +02:00
Dongjia "toka" Zhang
b9a540561b
Don't add llvm pass args when there're no passes & Don't pass -mllvm
arguments when compiling asm files ( #1266 )
...
* f
* fix
* clp
2023-05-12 11:48:12 +02:00
Tomas Duchac
53659f8a5c
Add file extension for clang in libafl_cc/build.rs ( #1237 )
...
* Add CLANG and CLANG_PP env vars
Add CLANG and CLANG_PP env variables for Windows. Resolves issue if clang and llvm-config are not in the same location.
* Just add clang".exe" for windows
User should have llvm-config and clang.exe clang++.exe in the same directory anyways.
* Ran cargo fmt
2023-05-04 11:52:51 +02:00
Dongjia "toka" Zhang
abd8efabd3
Add additional security sensitive functions for coverage accounting ( #1246 )
2023-05-03 15:45:07 +02:00
Dongjia "toka" Zhang
eab7c32e9f
Dump whole program's CFG pass ( #1226 )
...
* skelton
* pass
* compiles
* python
* optional pass
* rev
* chg
2023-04-24 14:57:24 +02:00
Andrea Fioraldi
0f633962ff
Bump to 0.10.0 ( #1156 )
...
* Bump to 0.10.0
* fix
* Fix CI
* Fix copyright
* fmt
---------
Co-authored-by: Dominik Maier <domenukk@gmail.com>
Co-authored-by: Dongjia "toka" Zhang <tokazerkje@outlook.com>
2023-04-05 17:49:53 +02:00
Dongjia "toka" Zhang
ccd1211cd2
Remove qemu_arm_launcher test from CI ( #1179 )
...
* remove qemu arm
* trigger all
* debug
* revert
* api chg
* fix
* try
* debug
* remove qemu
* no_std
* Update build_and_test.yml
* llvm16
* revert z3
* macos
* fix
* remove test
* don't grep on mac
* fix
* ok
* f
* f
* f
* aaa
2023-04-04 14:49:58 +02:00
David CARLIER
fd95560512
Check for the presence of clang frontends. ( #1158 )
...
* checks the presence of clang frontends.
close GH-1149.
* fix clippy complaints
2023-03-17 16:00:54 +01:00
Dongjia "toka" Zhang
0fa815f2b8
Rename MetaData to Metadata
2023-03-14 23:57:55 +09:00
Dominik Maier
2ed6583041
CI: Run miri tests ( #1130 )
...
* Fixes/ignores for miri support
* linux
* fix doctest for miri
* fix docs
* fix UB in baby_fuzzer
* no custom allocator in miri
2023-03-08 19:21:17 +01:00
Marco Cavenati
b96e194812
Improve find_llvm on MacOS ( #1124 )
...
By looking for explicitly versioned Homebrew formulae for LLVM
2023-03-07 03:23:46 +01:00
Dongjia "toka" Zhang
5b4ae61cdd
SimpleLogger API improvements, printing to stdout, timestamps ( #1109 )
...
* log
* fix
* a
* rev
* remove
* 2 logger
* cfg std
* more
* more
* cf
* no_std
* features
* optional
* rename
* current_time()
2023-03-02 14:07:46 +01:00
Dominik Maier
31357aa7e2
Track parent testcase id, tuneable stage probabilistic settings ( #1081 )
...
* Added local event handlers
* clippy
* move tuned mutator to pow2
* Tunable updates
* parent ids
* no_std, etc
* windows
* remove local event manager handler
* maybe fix win
* win:
* win docs
* docs
* ASAN -> ASan
2023-02-28 16:36:04 +01:00
Dongjia "toka" Zhang
20958a979f
Weak link token section ( #1080 )
...
* fix
* a
2023-02-17 10:38:46 +01:00
Elsa Granger
44b69666da
Fix fuzzbench build ( #1004 )
...
* Fix -z,defs handle
* Add libfuzzer_no_link_main option in libfuzzer
* Use libfuzzer_no_link_main for fuzzbench
* no_link_main feature
---------
Co-authored-by: Andrea Fioraldi <andreafioraldi@gmail.com>
2023-02-15 11:58:32 +01:00
Fabian Freyer
53dba5f49d
Use the log facade instead of println ( #1060 )
...
* switched a couple of println / dbg statements to use log crate
* Use pyo3-log for logging in python bindings
2023-02-14 10:01:51 +01:00
David CARLIER
3b68399cc9
libafl_cc fixes for clang 16 ( #1010 )
...
None constant being deprecated, it is recommended
to use the std::nullopt_t type instead.
2023-01-23 11:00:42 +01:00
Max Ammann
4d8b566a87
[Windows] Add libfuzzer example for windows with ASAN ( #934 )
...
* Add libfuzzer example for window with ASAN
* Fix formatting
* Add link
* Fix cpp format
* Skip windows fuzzers
* Fix format
* Fix testing fuzzer
* Fix taks name
Co-authored-by: Dongjia "toka" Zhang <tokazerkje@outlook.com>
Co-authored-by: Andrea Fioraldi <andreafioraldi@gmail.com>
Co-authored-by: Dominik Maier <domenukk@gmail.com>
2022-12-21 10:41:58 +01:00
Dominik Maier
68fbfc8914
Fix Clippy ( #926 )
...
* Fix clippy
* undo comment fmt
* add unstracked nyx files to gitignore
* fix
* windows, no_std
* fix
* fix
* more
* macos
* remove doctest
Co-authored-by: Dongjia "toka" Zhang <tokazerkje@outlook.com>
2022-12-06 00:05:42 +09:00
David CARLIER
32dc796234
Extend autotokens pass support to other unixes ( #900 )
2022-11-20 09:24:30 +01:00
David CARLIER
d77769540a
fixing freebsd unused import warning in core affinity. ( #897 )
...
fixing clang wrapper test passing llvm pass api support when there are actual passes.
Co-authored-by: Dongjia "toka" Zhang <tokazerkje@outlook.com>
2022-11-17 10:28:22 +01:00
Dominik Maier
a22c76e02e
Improve Apple support for libafl_cc dll_extensions ( #892 )
2022-11-15 18:28:52 +01:00
Andrea Fioraldi
31077765de
Fix CI ( #862 )
...
* Autofix with new clippy
* Clippy
2022-10-26 09:41:08 +02:00
Dominik Maier
b035b70f4e
Expose OUT_DIR for compiler passes to other components ( #840 )
...
* Expose OUT_DIR for compiler passes to other components
* not updating nyx
2022-10-21 09:36:22 +02:00
Andrea Fioraldi
089bc49d55
Bump to 0.8.2 and update versions script ( #828 )
2022-10-12 14:57:08 +02:00
Dominik Maier
94f0c7f56e
Moving to named parameters in format strings ( #827 )
...
* autofix
* you're just asking for a clamping
* autofmt on linux
* fix nits
* change back nit
* unfixing as u64 for GuestAddr
* fix
* ignoring clippy for GuestAddress
2022-10-11 13:45:01 +02:00
Dominik Maier
cc0c2f32ae
Additional errors only in test ( #809 )
2022-09-30 20:28:51 +02:00
David CARLIER
8cff2ce745
Reduce clang warnings for version output in libafl_cc. ( #778 )
2022-09-13 13:59:35 +02:00
Dominik Maier
5823320206
Fixes for new Clippy ( #755 )
2022-09-02 16:21:06 +02:00
Dongjia "toka" Zhang
2389f677f4
OSX force_load option ( #743 )
...
* Update clang.rs
* fmt
2022-08-27 09:51:11 -04:00
Dongjia Zhang
93c361bcd9
New Pass Manager Arguments ( #724 )
...
* new pm arguments
* enable abgeana's code
2022-08-18 19:26:52 +02:00
Dongjia Zhang
eac7307c5a
0.8.1 ( #732 )
2022-08-18 10:23:57 +02:00
Dongjia Zhang
5d9a19f955
Mac OS Autotokens ( #723 )
...
* mac_tokens
* more
* win fix
* fmt
* fmt c
2022-08-13 02:58:22 +02:00
Alexandru Geană
c1aafe3e98
LLVM passes for Windows ( #710 )
...
* libafl_cc fixes for windows
* libafl_cc checks for llvm-config (again)
* libafl_cc clang-format
* libafl_cc fixes for macos
* maintain libafl_cc pass manager selection logic
* libafl_cc rustfmt
2022-08-12 20:25:59 +02:00
syheliel
2504b6dae3
Add rustfmt.toml
( #722 )
...
* add `rustfmt.toml`
* format fix
Co-authored-by: syheliel <syheliel@gmail.com>
2022-08-12 02:28:32 +02:00
Dominik Maier
5a8bdae26f
Update requirements ( #714 )
...
* Update requirements
* more updates
* nits
* more updates
* update nix for fuzzers
* use any regex 1 instead of 1.6
2022-07-29 09:54:16 +02:00
Dongjia Zhang
999eaadc16
fix ( #703 )
2022-07-17 21:15:45 +02:00
Dongjia Zhang
ffe8dbf6af
Bump to 0.8.0 ( #696 )
...
* upd
* more
2022-07-11 21:59:11 +02:00
Dongjia Zhang
49de0046e8
Fix AFLCoverage Pass & small fixes ( #678 )
...
* fix
* more
* declare LIBAFL_CC_LLVM_VERSION at least when no llvm-config found
* More llvm14 fixes
2022-06-23 17:55:06 +02:00
Andrea Fioraldi
323b8e23ee
LIBAFL_DEBUG_OUTPUT in Launcher and OnDiskTOMLMonitor to create fuzzer_stats ( #666 )
...
* LIBAFL_DEBUG_OUTPUT in launcher on unix
* OnDiskTOMLMonitor
* fix
* clp
* clippy
* fix
* fix
* allow all
Co-authored-by: tokatoka <tokazerkje@outlook.com>
2022-06-08 17:32:58 +02:00
Dominik Maier
bfe69aea09
Format C/Cpp code in ./scripts/fmt_all.sh ( #653 )
...
* format all (clang format 13)
* added clang-format check
* re-add missing newline
* cargo doc was missing
* more brackets
* fixed fmt workflow
* clang format
* shellcheck
* install clang-format-13
* update ubuntu for maximum clang-formattability
* yml whitespaces
* fmt
* shellcheck only for .sh
* oops path
* ignored shellcheck warning
2022-05-29 03:23:02 +02:00
Dominik Maier
828ebcff39
Clippy nits & fixes ( #640 )
...
* release autofix
* fix unused backtrace
* clippy fixes
* clippy
* more clippy
* more autofix
* clippy for frida
* more clippy
2022-05-22 02:43:25 +02:00
Dongjia Zhang
afb32fb351
Cmplog New Pass Manager & LLVM 14 Fixes ( #626 )
...
* wip
* more
* match aflpp
* llvm14
* fix
* more llvm14
* check llvm version in libafl_cc
* safe access
* more
* fmt
* no windows
* no windows
2022-05-17 08:45:48 +02:00
Dongjia Zhang
a02b90be44
Autotokens New PM ( #605 )
...
* autotokens newpm
* typo
* fmt
* clp
* fix
* fix
* include &fmt
* include
* fmt
* llvm14 & clippy fix
* fix
2022-05-09 18:41:53 +09:00
Dominik Maier
196569577f
Clippy nightly fixes ( #622 )
...
* removed unused errors
* Fixes
2022-05-06 19:11:09 +02:00