Valentin Huber
5a2652b984
Adding StdXObserver Docs ( #2311 )
...
* Adding StdXObserver Docs
* fixing docs
* code cleanup
* moving example
* improving exclusion rules
* adding impls for features
* adding test exclusions
* excluding miri from OS including tests
* fixing CI
---------
Co-authored-by: Dongjia "toka" Zhang <tokazerkje@outlook.com>
0.13.0
2024-06-14 19:41:21 +02:00
Dongjia "toka" Zhang
c3930b39fc
Fix CI ( #2312 )
2024-06-14 14:16:31 +02:00
lazymio
18a25d3b3d
Fix debug assert on map_state.num_covered_map_indexes ( #2310 )
2024-06-14 13:29:38 +02:00
Dongjia "toka" Zhang
c415b4d5f6
0.13.0 ( #2253 )
...
* 0.13
* z3
* capstone
* fixer
---------
Co-authored-by: Dominik Maier <domenukk@gmail.com>
2024-06-13 23:35:35 +02:00
clesmian
2265d672fc
Allow trailing comma in feedback macros ( #2308 )
...
Co-authored-by: Leon Weiß <leon.weiss@rub.de>
2024-06-13 23:35:20 +02:00
Dongjia "toka" Zhang
e12412fed6
Fix Stdout/err Observer? ( #2301 )
2024-06-13 13:33:36 +02:00
Aarnav
901572556f
Add support for cycling PowerSchedule on completion of a queue cycle in WeightedScheduler ( #2300 )
...
* add support for cycling PowerSchedule on completion of a queue cycle in WeightedScheduler
* improve doc
* make fn cycle_schedule private
* rename cycle_schedules to cycling_scheduler
2024-06-13 10:25:25 +01:00
Andrea Fioraldi
09faec15f4
Add libdesyscall ( #1221 )
...
Co-authored-by: Dongjia "toka" Zhang <tokazerkje@outlook.com>
2024-06-12 11:28:31 +02:00
Dongjia "toka" Zhang
0ed295842b
Use filename for MmapShMemProvider ( #2303 )
...
* fixer
* comment
* a
* bb
* apple
2024-06-11 20:15:11 +02:00
mkravchik
03d8d2eb08
Fixing Frida ASAN tests on Windows ( #2299 )
...
* libafl_frida unit tests passing with ASAN
* Clippy+fmt
* Clippy
* Setup VS environment before building
2024-06-11 13:22:46 +02:00
Valentin Huber
df40db5ae8
Fix closing mmap on provider::release_shmem ( #2298 )
2024-06-10 17:59:51 +02:00
Dongjia "toka" Zhang
f4699ba385
Make adaptive serialization into default ( #2296 )
...
* no adaptive
* add another api
* allow unused
2024-06-09 00:10:30 +02:00
Dongjia "toka" Zhang
454176427b
Windows clippy ( #2295 )
...
* add
* real one
* fuck
* abc
* def
* ghi
* jkl
* fix
---------
Co-authored-by: Romain Malmain <romain.malmain@pm.me>
2024-06-08 20:32:40 +02:00
Dominik Maier
93085782d6
Rename string stages to unicode stages for consistency ( #2293 )
2024-06-08 16:59:49 +01:00
Dongjia "toka" Zhang
e905743ef6
Update issue template( #2294 )
2024-06-08 17:42:33 +02:00
Dongjia "toka" Zhang
30ae963c45
Fix CI ( #2292 )
...
* p
* a
* p
* a
* delete transfered
* b
* bring back transferred
* ??
* xx
* conditional
* ?
* debug
* a
* 🤬 🤬 🤬 🤬 🤬 🤬 🤬
* a
* a
* comment
2024-06-08 16:25:49 +01:00
Romain Malmain
8ef4e2aff0
Do not fmt little cms files ( #2291 )
2024-06-08 13:19:58 +01:00
Dominik Maier
ba84170777
Fix docs on crates.io for LibAFL_Frida, introduce auto-download feature ( #2270 )
...
* Fix docs on crates.io for LibAFL_Frida, introduce auto-download feature
* remove it more
* more testing
* more features
* more CI
* CI?
* CI?
* More fix?
* nicer
* More fix?
* test?
* more try?
* why?
* more more
2024-06-08 13:02:59 +01:00
Dongjia "toka" Zhang
e99fcad326
Run ./scripts/fmt_all.sh in CI ( #2290 )
...
* pppp
* fix
* xx
* add clang18
* fix
* chg
* purge existing clang..
* tmate
* trigger
* bruh
* finally..
* Don't fmt when not in cargo-fmt
* fix
* aaaaaa
* fuck
2024-06-08 01:41:39 +02:00
Dongjia "toka" Zhang
1e2fac6f53
abort() when the weakly defined LLVMFuzzerTestOneInput is linked( #2289 )
2024-06-07 23:54:19 +02:00
Romain Malmain
14263b9c69
Rusty LibAFL fmt ( #2271 )
2024-06-07 23:41:50 +02:00
Marco Neumann
b1bec42044
fix: libafl_libfuzzer
build script ( #2282 )
...
- features check was inverted
- print helpful message when `llvm-nm` wasn't found, which happens to be
the case on _stable_
Co-authored-by: Dongjia "toka" Zhang <tokazerkje@outlook.com>
2024-06-07 23:37:08 +02:00
Aarnav
477941e0e2
change Stability calculation formla to AFL++'s ( #2275 )
...
* change Stability calculation formla to AFL++'s
* clippy
* use MapFeedbackMetadata instead of recalculating filled entries in map
* calculate filled entries if MapFeedbackMetadata is not available
---------
Co-authored-by: Dongjia "toka" Zhang <tokazerkje@outlook.com>
2024-06-07 14:56:37 +02:00
Dongjia "toka" Zhang
2cc33464fa
Cleanup for #2280 ( #2286 )
...
* cleanup
* ppppp
* a
* b
2024-06-07 14:56:14 +02:00
Dongjia "toka" Zhang
1b008ae2e4
Delete 'static from libafl::events ( #2285 )
2024-06-07 13:45:36 +02:00
Kevin Phoenix
bc5ae151bc
libafl_qemu_build: Disable docs in user mode ( #2272 )
2024-06-06 18:57:13 +01:00
Aarnav
a455ad27a9
Fix WeightedScheduler reporting incorrect queue cylces ( #2281 )
...
* fix WeightedScheduler reporting incorrect queue cylces
* check if runs_in_cycle equals or greater instead of just equals
---------
Co-authored-by: Dongjia "toka" Zhang <tokazerkje@outlook.com>
2024-06-06 18:50:29 +01:00
Romain Malmain
af12b4ba24
LLmp hooks ( #2280 )
...
* llmp hooks
* separate llmp broker from inner state to allow doing more stuff
2024-06-06 16:07:55 +02:00
Romain Malmain
399fbccea2
Closure builder for inner managers of centralized. ( #2279 )
...
* generic inner manager for centralized, with builder closures.
* moved options inside the function
* removed useless bound
* unused import
* remove useless clone bound.
* make clearer what is secondary node
* same inner manager for main and secondary
* fix example
2024-06-05 19:12:21 +02:00
Aarnav
7dd345d18c
Enforce max_input_size and min_input_size in Forkserver ( #2273 )
...
* enforce minimum and maximum input size for Forkserver's shared memory map and file based testcases
* explicit conversion to OwnedSlice
* clippy
* error if min_input_size > max_input_size when building forkserver
2024-06-05 16:16:30 +02:00
Dongjia "toka" Zhang
6373a1e1b3
Use Self::State as much as possible and remove unnecessary type bounds ( #2263 )
...
* use Self::State as much as possible
* makeing progress, little by little
* more
* add
* more and more
* more
* more
* mre
* fix
* a
* pp
* fix
* fix
* more
* version
* fix cargo fuzz
2024-06-05 15:16:43 +02:00
Dongjia "toka" Zhang
a7bb5196ea
Revert "Revert "Add always_interesting option to llmp mgr ( #2262 )" ( #2274 )" ( #2278 )
...
This reverts commit 620835a73f4a1163177d2b11b61625177c737cd5.
2024-06-05 15:10:32 +02:00
Dongjia "toka" Zhang
620835a73f
Revert "Add always_interesting option to llmp mgr ( #2262 )" ( #2274 )
...
This reverts commit 0f9c82f893b0bb8e91b78c5c17f8d1c8d452669e.
2024-06-04 18:53:01 +02:00
Dominik Maier
1556cba426
Update ratatui to 0.26 ( #2269 )
...
* Update ratatui to 0.26
* more build infos
* fix introspection
2024-06-03 15:23:12 +02:00
dependabot[bot]
2a82e9c40f
Update winsafe requirement from 0.0.20 to 0.0.21 ( #2268 )
...
Updates the requirements on [winsafe](https://github.com/rodrigocfd/winsafe ) to permit the latest version.
- [Commits](https://github.com/rodrigocfd/winsafe/compare/v0.0.20...v0.0.21 )
---
updated-dependencies:
- dependency-name: winsafe
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-03 14:27:21 +02:00
Dominik Maier
58c39680c9
Move Nautilus to LibAFL, remove AGPL dependencies ( #2265 )
...
* Copy choose method for unbounded iterators
* Add choose method for unbounded iterators
* Copy&paste in nautilus grammartec
* cargo
* fmt
* Initial Nautilus in LibAFL
* missing link
* clippy
* clippy
* more clippy
* docs
* docs
* more docs
* remove nautilus default
* fix doctest
* fmt
* less vec
* test
* less flakey
* clippy
* clippy
2024-06-03 14:18:52 +02:00
Dongjia "toka" Zhang
0f9c82f893
Add always_interesting option to llmp mgr ( #2262 )
...
* always add
* change launcher...
2024-05-31 15:18:51 +02:00
Aarnav
7b90873305
introduce CustomFilenameToTestcaseFeedback ( #2256 )
...
* introduce CustomTestcaseFilenameFeedback
* rename CustomTestcaseFilenameFeedback to CustomFilenameToTestcaseFeedback
* rename custom_testcase_filename to custom_filename
---------
Co-authored-by: Romain Malmain <romain.malmain@pm.me>
2024-05-30 19:05:53 +02:00
Romain Malmain
1102ea0fe7
Better RW errors for QEMU ( #2260 )
...
* better error for rw in qemu.
* fix python
* clippy
* Fix error in fuzzers
* Fix error in fuzzers
* fix systemmode error
* import
2024-05-30 15:14:17 +02:00
Dongjia "toka" Zhang
e912216a37
Add remove_from_all method to Corpus
trait ( #2259 )
...
* add remove_from_all
* a
* a
* aaaaaaa
* make remove_from_all to remove
2024-05-30 11:53:32 +02:00
Mrmaxmeier
b96b9be674
tutorial fuzzer: switch lain fork to AFLplusplus/lain ( #2257 )
2024-05-28 20:45:18 +02:00
Mrmaxmeier
7fe43a28e8
fix duplicate package warning ( #2258 )
...
warning: skipping duplicate package `fuzzbench` found at `~/.cargo/git/checkouts/libafl-c33dc6f5ec2f7a70/058e15f/fuzzers/fuzzbench`
2024-05-28 20:45:04 +02:00
Addison Crump
058e15f547
Implement tuple mapping ( #2247 )
...
* implement tuple mapping
* docs, clippy magic
* clippy >:(
* rename for clarity
2024-05-28 18:11:41 +02:00
Romain Malmain
65af5a7f78
Fix libnyx, library upgrades ( #2254 )
...
* try this thing
* this?
* use new mmap signature in nix.
* fix import
* fix to work with addr2line v0.23.
* remove unused flag
* update strum also for dependency...
* clippy
* clippy
* update lain git hash
* bump many outdated crates
* fix hash
2024-05-28 17:15:08 +02:00
Dominik Maier
c3f67daefb
Fix nix update ( #2252 ) ( #2255 )
2024-05-28 13:16:09 +02:00
Romain Malmain
963afc3e5c
Pre-commit hooks ( #2241 )
...
* add pre-commit hook.
example of hook with fmt check.
* Add `CONTRIBUTING.md`.
2024-05-28 11:45:13 +02:00
Aarnav
bce0f08294
Introduce feedbacks hit tracking for testcases ( #2248 )
...
* introduce feedbacks hit tracking for testcases
* make Testcase::hit_feedbacks into Cow<&str> instead of String
rename get_hit_feedbacks to append_hit_feedbacks
update documentation
* simplify ConstFeedback
* rename Feedback::last_result to prev_result
* impl TODO prev_result for NewHashFeedback, ListFeedback, TransferredFeedback, NautilusFeedback
* rename prev_result to last_result
* add docs
* introduce Objectives hit tracking
* update docs
* update Cargo.toml docs
* update docs
* track Feedbacks & Objectives hit in Fuzzer::add_input
* fmt
* clippy
* fix type error in OomFeedback::last_result
* impl last_result for AsanErrorsFeedback
* add track_hit_feedbacks as a feature to libafl_libfuzzer_runtime
* fix clippy
* change return type of Feedback::last_result to a Result
* remove expect in NewHashFeedback::is_interesting
* move Error::premature_last_result to libafl from libafl_bolts
2024-05-28 11:43:05 +02:00
dependabot[bot]
e4446b908c
Update nix requirement from 0.27 to 0.29 ( #2252 )
...
---
updated-dependencies:
- dependency-name: nix
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-28 11:42:46 +02:00
dependabot[bot]
2670049c2b
Update addr2line requirement from 0.22 to 0.23 ( #2251 )
...
Updates the requirements on [addr2line](https://github.com/gimli-rs/addr2line ) to permit the latest version.
- [Changelog](https://github.com/gimli-rs/addr2line/blob/master/CHANGELOG.md )
- [Commits](https://github.com/gimli-rs/addr2line/compare/0.22.0...0.23.0 )
---
updated-dependencies:
- dependency-name: addr2line
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-28 11:42:34 +02:00
Romain Malmain
4d45100a63
Fix libafl_qemu.h
( #2250 )
...
* fix header for gcc
* fix comment
2024-05-28 11:39:24 +02:00