403 Commits

Author SHA1 Message Date
Dominik Maier
69c3581f1a fmt 2021-03-03 16:19:51 +01:00
Dominik Maier
909d0f8574 fix windows build 2021-03-03 16:19:35 +01:00
s1341
fde48be53e
unix_domain_sockets/ashmem: Add ability to connect over unix domain sockets instead of just TCP; Add ashmem support for android (#19)
* unix_domain_sockets: Added Listener abstraction

Tested and TCP is still working

* unix_domain_sockets: turn off the unstable feature except on android

* unix_domain_sockets: more turn off the unstable feature except on android

* unix_domain_sockets: always import UnixListener

* unix_domain_sockets: Finished implementation. Tested working on android when both sides are root

* unix_domain_sockets: adjust conditional compilation

* unix_domain_sockets: formatting

* unix_domain_sockets/android: implement ashmem hooks

* unix_domain_sockets/android: formatting

* unix_domain_sockets: make Listener abstraction public

* unix_domain_sockets: add cfg(std) to Listener

* unix_domain_sockets: add cfg(std) to imports

* unix_domain_sockets: formatting

* unix_domain_sockets: Handle SIGTERM, SIGQUIT and SIGINT gracefully and cleanup the unix socket

* unix_domain_sockets: formatting

* unix_domain_sockets: fix conditional compilation

* unix_domain_sockets: use String::default instead of a literal

* unix_domain_sockets: socket_name should be an Option<>

* fixed build

* fmt

* fixed warnings

* using volatile reads and writes for shutdown flag

* reordered compiler fence on write

* moved the signal handler method to its own function

* readme

* moved to HasShmId

* unix_domain_sockets: fix warnings

* renamed HasShmId to HasFd

Co-authored-by: Dominik Maier <domenukk@gmail.com>
2021-03-03 12:31:29 +01:00
Dominik Maier
a3b22acb04 clippy 2021-03-02 20:44:17 +01:00
Dominik Maier
c7f1d83b6e more clippy fixes 2021-03-02 19:57:43 +01:00
Dominik Maier
dbd3cbd99c some clippy fixes 2021-03-02 19:33:03 +01:00
Andrea Fioraldi
ff99a442e5
Merge branch 'main' into dev 2021-03-01 18:41:45 +01:00
Marcin Kozlowski
959c8f0dd8
Libmozjpeg example added (#15)
* WIP Harness for libmozjpeg

* Taskset removal (wrong invocation, without -c)

* Clean up
Fixed taskset in test.sh

* Docs

* Formatting

* Formatting

* Formatting

* Formatting

* jpeg example now uses a tokens file

* fixed testcases

* fixing build

* fixed more bugs

* metadatas->metadata

* token files

* added doctest test

Co-authored-by: Dominik Maier <domenukk@gmail.com>
2021-03-01 17:54:47 +01:00
s1341
d0d9d2887f
Support running on Android aarch64 (#17)
* android: cleanup build.rs and allow for cross-compilation

* aarch64: use an aarch64 undefined instruction

* android: i8 should be u8

* android: siginfo_t is different on arm

* android: cast to c_char instead of u8/i8

It turns out that c_char is different on android and linux

* android: handle LDFLAGS being empty

* android: formatting

* fixed warning

Co-authored-by: Dominik Maier <domenukk@gmail.com>
2021-03-01 15:18:27 +01:00
Andrea Fioraldi
f18af45d09 libafl_derive proc macro crate 2021-03-01 14:11:37 +01:00
Andrea Fioraldi
24e9f70b83
Merge pull request #16 from AFLplusplus/dev
Minimizer Corpus Scheduler & hitcounts
2021-03-01 10:59:50 +01:00
Andrea Fioraldi
405bfc5294 fix #14 2021-03-01 10:31:47 +01:00
Andrea Fioraldi
dc39a5591a format 2021-03-01 10:04:59 +01:00
Andrea Fioraldi
34cba3e59c fix bug in queue scheduler 2021-03-01 10:00:53 +01:00
Andrea Fioraldi
c245d5e5fb pass scheduler to stage 2021-03-01 09:54:39 +01:00
Dominik Maier
061a8dd77c OnDiskCorpus autocreates dictionaries 2021-03-01 02:27:21 +01:00
Andrea Fioraldi
3aa9439e80 scheduler half finished 2021-02-28 23:22:18 +01:00
Andrea Fioraldi
fd83c10c1e finish minimizer scheduler 2021-02-26 22:22:10 +01:00
Andrea Fioraldi
bb29e6dd72 errors in minset for missing meta 2021-02-26 17:21:03 +01:00
Andrea Fioraldi
204076bb1e track meta in map feedback 2021-02-26 17:11:46 +01:00
Andrea Fioraldi
140a303546 format 2021-02-26 16:24:24 +01:00
Andrea Fioraldi
913968a68d almost finished MinimizerCorpusScheduler 2021-02-26 16:23:09 +01:00
Dominik Maier
15a64c3e17 moved new -> with_seed, with_random_seed -> new 2021-02-26 09:27:34 +01:00
Dominik Maier
776349eaa7
Merge pull request #11 from AFLplusplus/fix-default-prng
impl Default for rngs with a decent seed
2021-02-26 08:43:32 +01:00
Dominik Maier
d48524168a Moved fuzzer to examples 2021-02-26 08:35:18 +01:00
Dominik Maier
691c9d4bf6 token test added 2021-02-25 23:29:22 +01:00
Evan Richter
00da3b975a
Merge branch 'main' into fix-default-prng 2021-02-25 15:50:30 -06:00
Evan Richter
38f9b1d229
repetetive trait impls now use macros, stronger rand test 2021-02-25 15:46:29 -06:00
Dominik Maier
0e3e40e9a4 fixed testcase in lib.rs 2021-02-25 19:09:57 +01:00
Dominik Maier
ea278a0dd6 fixed testcases, removed mutator param from mutators 2021-02-25 18:55:37 +01:00
Evan Richter
6e6ac27791
RandomSeed trait for seeding Rand things from system time 2021-02-25 11:20:02 -06:00
Evan Richter
82a6936154
impl Default for rngs with decent seeds 2021-02-25 11:20:02 -06:00
Dominik Maier
0134b74a39 testcases fixed, no_std fixes 2021-02-25 17:17:55 +01:00
Andrea Fioraldi
705196fe32 MinimizerCorpusScheduler skeleton 2021-02-25 15:34:35 +01:00
Evan Richter
26747226a6
fix warnings in cargo doc 2021-02-24 16:24:23 -06:00
Andrea Fioraldi
0d39314324 remove old corpus mod 2021-02-23 20:36:23 +01:00
Andrea Fioraldi
861bb4d44b cached len 2021-02-23 20:24:59 +01:00
Andrea Fioraldi
a5cc8313db new ondisk corpus 2021-02-22 15:19:35 +01:00
Andrea Fioraldi
3b0883721e rand and queue corpus schedulers 2021-02-22 14:13:00 +01:00
Andrea Fioraldi
ff626a124b compiles 2021-02-22 13:52:53 +01:00
Andrea Fioraldi
c411fec271 scozz 2021-02-22 11:26:11 +01:00
Andrea Fioraldi
1585645972 fuck you rust 2021-02-21 16:10:57 +01:00
Andrea Fioraldi
93947c44cf executor fix 2021-02-21 14:34:51 +01:00
Andrea Fioraldi
a3b30a2869 save work and go to the grocery shop 2021-02-19 16:10:30 +01:00
Andrea Fioraldi
a939f052d3 fuzzer arg missing atm 2021-02-19 15:46:39 +01:00
Andrea Fioraldi
95281dbfef mutations 2021-02-19 12:15:09 +01:00
Andrea Fioraldi
8b22a06ec9 unfinished generic magics 2021-02-18 17:12:27 +01:00
Andrea Fioraldi
31d94925d0 HasLen for input and exec_time in Testcase 2021-02-17 13:50:56 +01:00
Andrea Fioraldi
a60ef073ed tuple for each 2021-02-17 09:32:25 +01:00
Andrea Fioraldi
1575a3994b impl serdeany macro 2021-02-16 14:49:18 +01:00