3576 Commits

Author SHA1 Message Date
Dominik Maier
2b43d86296
Update clap across the repo (#2374) 2024-07-10 15:35:25 +02:00
Dominik Maier
977a597e9a
More Clippy (#2370) 2024-07-10 10:44:21 +02:00
Dominik Maier
721fd3b14e
Make tokens more token-y (less dictionary-y) (#2371) 2024-07-09 17:37:37 +02:00
saibotk
40f9cc946c
fix(tui): Make client bottom layouts visible again (#2368)
The length constraint on the bottom areas was set to 0 and thus those two blocks were invisible.
We adjusted those to the correct values to show all lines & also removed the unnecessary extra chunk layout variable.
2024-07-09 16:27:48 +02:00
Nereuxofficial
571c4c111e
Wrap metadata elements in Cow (#2364)
* feat: Wrap metadata elements in Cow

* fix(libafl_bolts): Compile Error due to wrong type

* cleanup(libafl_bolts): Remove unnecessary import

* cleanup(libafl_bolts): Removed unnecessary alloc

* fix(libafl_bolts): Fixed type_repr_owned

* cleanup(libafl_bolts): unused import
2024-07-07 16:30:12 +02:00
Andrea Fioraldi
2356ba5754
Fix missing -use_value_profile flag in libafl_libfuzzer (#2363)
* Add -use_value_profile to libafl_libfuzzer

* clippy
2024-07-05 14:09:07 +02:00
0e5bf879e4 fix try_force_new_branches 2024-07-04 12:49:09 +02:00
Dominik Maier
d7b5d55408
Make sure inmemory_ondisk corpus catches filesystem errors correctly (#2361)
* Make sure inmemory_ondisk corpus catches filesystem errors correctly

* clip

* change names to be clearer
2024-07-03 16:25:12 +02:00
Nereuxofficial
ed3bd003a4
fix: Added corpus for dynamic_analysis fuzzer (#2360)
* doc: fixed instruction in CONTRIBUTING.md

* Added note for windows users

* fix: Added corpus for dynamic_analysis fuzzer

* fix for calling the clippy script on windows

* Fixed path oversight in previous commit
2024-07-03 11:51:52 +02:00
Nereuxofficial
030e5066b6
doc: fixed instruction in CONTRIBUTING.md (#2359)
* doc: fixed instruction in CONTRIBUTING.md

* Added note for windows users

* fix for calling the clippy script on windows
2024-07-02 19:32:11 +02:00
Aarnav
eff40320eb
Add Stoppable trait to State which exposes an API to stop the fuzzer (#2325)
* add HasStopNext to State which exposes an API to stop the fuzzer. Stops the fuzzer in fuzz_loop or
fuzz_loop_for when set to true

* fix import

* rename HasStopNext to HasShouldStopFuzzing and stop_next to should_stop_fuzzing

* added HasShouldStopFuzzing trait constraint for libafl_libfuzzer_runtime fuzzer

* rename HasShouldStopFuzzing to Stoppable and add it as a type constraint in libafl_libfuzzer report.rs

* rename should_stop_fuzzing -> should_stop

* introduce Event::Stop

* fix prelude import

* Call send_exiting when processing Event::Stop in restartable managers

* fix clippy

* introduce on_shutdown function in EventProcessor, a function to exit
without saving state gracefully. In contrast with on_restart.

* call manager.on_shutdown when stopping in fuzz_loop due to state.should_stop

* Add missing on_shutdown implementations
Check after every stage in Stages::perform_all if should exit and do so.

* remove specialization

* fix doc

* introduce EventProcessor constraint in libafl_libfuzzer_runtime
run clippy in libafl_libfuzzer_runtime

* fix CentralizedEventManager's on_shutdown not calling inner.on_shutdown

* fix bugs in CentralizedLauncher that wouldn't allow children to terminate properly

* don't call send_exiting when processing Event::Stop since it will be called when calling on_shutdown anyways

* clippy

* add set_exit_after so broker does not need to inner_mut to set exit_cleanly_after

* return Cow<str> from Event::name_detailed instead of a String

* fix missing import in libafl_libfuzzer_runtime

* add initate_stop and reset_stop to Stoppable trait to superceed should_stop_mut

* clippy

* typo

* rename initate_stop to request_stop, should_stop to stop_requested and reset_stop to discard_stop_request

* fix missing import

* windows clippy fix

* fix broker typo
2024-07-02 17:45:20 +02:00
Dongjia "toka" Zhang
762b6e008e
Make llvm pass build feature dependent (#2357)
* push

* everybody is default

* fix

* fix
2024-07-02 17:37:07 +02:00
d569df29a3 build fixes 2024-07-02 09:34:56 +02:00
47724ad1c3 stg try_force_new_branches 2024-07-02 09:34:35 +02:00
Dongjia "toka" Zhang
7c95afc42f
Rename some functions in fuzzer.rs (#2355)
* rename

* fmt
2024-07-01 21:47:10 +02:00
Marco C
140f84441a
LibAFL QEMU fix Doc-tests (#2354)
Explicitly mark the README snippet as bibtex to avoid cargo trying to run it as Rust
2024-07-01 14:29:33 +02:00
810ec36115 refactor 2024-07-01 13:28:38 +02:00
Andrea Fioraldi
35d8e67992
Fix libafl_libfuzzer publish (#2353) 2024-06-30 20:38:03 +02:00
Andrea Fioraldi
12c6cc186b
LibAFL QEMU readme (#2351) 2024-06-30 17:24:02 +02:00
Nereuxofficial
d564656f1c
Improved documentation for fuzzers/cargo_fuzz and dynamic_analysis (#2350)
* Improved documentation for fuzzers/cargo_fuzz and dynamic_analysis

* revert line breaks in markdown files
2024-06-30 14:31:34 +02:00
Dongjia "toka" Zhang
bb579e624e
0.13.1 (#2343) 2024-06-29 12:41:56 +02:00
Dongjia "toka" Zhang
234ea049a0
Delete introspection feature from libafl_libfuzzer (#2349)
* fix

* a

* delete it
2024-06-28 23:02:32 +02:00
Dominik Maier
602bce446f
Fix LLVMFuzzerCustomMutator with different sizes (#2347)
* Fix LLVMFuzzerCustomMutator with different sizes

* removed needles extra thingy

* clippy

* more clip
2024-06-28 16:40:41 +02:00
77799f77a9 move cli parsing, use multibyteinput 2024-06-28 14:38:25 +02:00
Dongjia "toka" Zhang
50d75422c8
Fixing receiver_left()/memory leak in llmp.rs (#2344)
* fixer

* real fix
2024-06-27 16:52:05 +02:00
Dominik Maier
8031111660
Make ddg map compilation optional (#2341)
* Make ddg map compilation optional

* undo

* undo
2024-06-27 01:19:45 +02:00
Dominik Maier
ea6e440762
Re-Rename Retrying Restart Helper (#2340) 2024-06-26 23:49:22 +02:00
Dominik Maier
3616cc6a55
Fix unsafe_stable_anymap, rename to stable_anymap (it's safe) (#2338)
* doesn't work poc

* Works

* make this work with or without feature

* start time

* Fix fixes

* Fix more build

* fix build

* reset changes in fuzzbench fuzzer

---------

Co-authored-by: Toka <tokazerkje@outlook.com>
2024-06-26 22:44:01 +02:00
Marco C
abdb7c2996
bolts: fix warning about error_in_core now stable (#2337)
the feature `error_in_core` has been stable since 1.81.0-nightly and no longer requires an attribute to enable
2024-06-25 16:48:16 +02:00
Dongjia "toka" Zhang
2d1e429482
baby_fuzzer_wasm fix (#2336)
* fixer

* a
2024-06-24 17:31:25 +02:00
David CARLIER
6db68970ee
bolts: haiku build fix. (#2335) 2024-06-24 00:59:39 +02:00
Aarnav
b2635df524
Make LlmpEventManager call pre_exec hook (#2333) 2024-06-23 14:39:34 +02:00
Dongjia "toka" Zhang
e3dd7cf0dc
Don't restart in deterministic stages. Don't restart where there's no restart safety. Make stage names unique (#2331)
* push

* fuck

* add

* add

* api

* api

* add multi machine to workspace

* doc

* api

* api

* add

* more

* fix

* stats

* rev

* fix

* fix

* real fix

* add

* fmt

* add

* add

* fix

* a

* add

* revert workflow

---------

Co-authored-by: Your Name <you@example.com>
2024-06-20 17:38:15 +02:00
Dominik Maier
042840dba1
Call all Ids id, not idx (#2319)
* All Ids should be id not idx

* More

* fix

* win?

* win?

* win?

* fix

* more fix

* desyscall?

* more

* fmt

* std

* make id less id-y

* fmt

* fix

* cleanup

* fixes all around

* fix

* Fix the broken stuff from refactoring

* remove unused

---------

Co-authored-by: Dongjia "toka" Zhang <tokazerkje@outlook.com>
2024-06-20 14:46:47 +01:00
acf9b04e70 remove unused code 2024-06-20 13:25:21 +02:00
6cb2be4408 add TimeProbMassScheduler 2024-06-20 10:15:01 +02:00
3a7c0da037 fast snapshots by default 2024-06-19 14:22:12 +02:00
5fad373199 update to 0.13.0 API 2024-06-19 13:30:36 +02:00
Dongjia "toka" Zhang
a2da080fa6
Delete wrong exec count increment (#2330) 2024-06-19 11:57:27 +02:00
Dominik Maier
e64f0fb536
Address comments from #2302 (#2322)
* Address comments from #2302

* secure?

* cleanup

* early exit ftw

* address clippy

* Fix all the things
2024-06-18 14:58:37 +01:00
学儿思
5519ee7d77
Fix typos (#2327) 2024-06-18 15:57:27 +02:00
Dongjia "toka" Zhang
b6bb604c71
Fix sync stage (#2326)
* f

* a

---------

Co-authored-by: Skynet 2 <name@domain.example>
2024-06-18 15:32:24 +02:00
Romain Malmain
fa17f47115
Tree-shaped multi-machine fuzzing (#2302)
* tree-shaped multi-machine fuzzing

* forgot main file

* aaa

* moving things around

* fix

* working?

* remove debug panic

* aaa

* aaa

* fmt

* normal centralized adapted

* removed old useless code

* cleanup

* llmp hooks

* working multi machine apparently?

* aaa

* cleanup (#2305)

* added old message dispatch.
thread safety stuff

* testing things around

* opti opti opti

* :)

* fuzz

* limit the amound received at once to avoid congestion

* remove useless corpus
mv to sqlite
less warnings

* aaa

* ;

* big opti

* adding cfgs

* fix

* fixer

* fix

* s

* clippy and reduce generics

* debugging

* fix

* more robust disconnection

* aaa

* aaa

* aaa

* nostd

* more nostd

* clippy

* not in ci

* unused

* aaa

* doc

* clippy

* clippy

* clippy

* no crash in libpng

* aaa

* aaa

* aaa

* aaa

* graph generator

* fix

* fix

* windows fix all

---------

Co-authored-by: Dongjia "toka" Zhang <tokazerkje@outlook.com>
2024-06-17 23:23:01 +02:00
Dongjia "toka" Zhang
a4070deee1
fix win build (#2321)
Co-authored-by: Your Name <you@example.com>
2024-06-17 18:19:44 +02:00
dependabot[bot]
7792d87e32
Update meminterval requirement from 0.3 to 0.4 (#2317)
---
updated-dependencies:
- dependency-name: meminterval
  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-17 17:48:15 +02:00
Romain Malmain
609a4ad7fe
Add Romain Malmain to maintainers list (#2318) 2024-06-17 16:32:46 +01:00
学儿思
c9cf8af14d
Fix typos (#2320) 2024-06-17 16:27:32 +01:00
df7333b764 WIP: merge 2024-06-17 14:17:06 +02:00
a7becb403e update helper scripts 2024-06-17 10:31:48 +02:00
Dongjia "toka" Zhang
51db18eea8
Format desyscall (#2316)
* f

* clippy and stuff

* no apple
2024-06-16 12:20:08 +01:00