564 Commits

Author SHA1 Message Date
Andrea Fioraldi
46c69aeee8 add timeouts to libpng_libfuzzer 2021-03-17 15:36:56 +01:00
toka
b321675aa9 add TimeoutFeedback and send ExitKind::Timeout from the handler 2021-03-16 18:48:40 +09:00
toka
ab3d070f1a add TimeoutExecutor 2021-03-16 18:13:18 +09:00
Andrea Fioraldi
eaa5b15304 readmes 2021-03-11 10:15:53 +01:00
Andrea Fioraldi
93d484bb58 posix_memalign in calloc 2021-03-11 10:11:22 +01:00
Andrea Fioraldi
3752821ab4 create libfuzzer_libpng_cmpalloc 2021-03-11 10:09:42 +01:00
Dominik Maier
f7db29d213 workaround for recursive malloc in release mode 2021-03-10 19:40:39 +01:00
Andrea Fioraldi
add3cf9665 rewrite alloc size tracking in rt.c 2021-03-09 15:23:40 +01:00
Andrea Fioraldi
dbe935b078 time feedback in libfuzzer example 2021-03-09 15:18:50 +01:00
s1341
b048ddf470
Better Unix Signal Handling Abstractions (#22)
* WIP: unix_signal_handling

* WIP: unix_signal_handling, another try

* only emit a single illegal instruction

* unix_signal_handling: Now working

* unix_signal_handling: squash warnings

* unix_signal_handling: formatting

* fix spelling

* unix_signal_handling: add missing file

* unix_signal_handling: port LlmpBroker

* unix_signal_handling: fix missing import

* moving towards no_std compatibility

* unix_signal_handling: get rid of HashMap, Mutex and lazy-static

* unix_signal_handling: formatting

* readme

* no_std fixes

* fixed windows build

Co-authored-by: Dominik Maier <domenukk@gmail.com>
Co-authored-by: Andrea Fioraldi <andreafioraldi@gmail.com>
2021-03-05 15:36:44 +01:00
Dominik Maier
bb54d551ac included more clippy suggestions 2021-03-04 19:11:36 +01:00
Andrea Fioraldi
22100d8446 fix rt.c 2021-03-03 17:42:27 +01:00
Dominik Maier
eaa3dc786b
Fork (#20)
* wip forking

* fixed build

* fixed build

* import cleanup

* more fork

* added windows ci

* fmt

* no_std fixes

* windows

* unix build fixed

* ignoring tests on windows

* fixed windows tests
2021-03-03 17:06:17 +01:00
Andrea Fioraldi
8238d65cac libfuzzer runtime for malloc maximization 2021-03-03 17:00:42 +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
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
24e9f70b83
Merge pull request #16 from AFLplusplus/dev
Minimizer Corpus Scheduler & hitcounts
2021-03-01 10:59:50 +01:00
Andrea Fioraldi
bd800b63f5 hitcounts observer in libpng example 2021-03-01 10:34:59 +01:00
Andrea Fioraldi
7c9fc88e66 use hitcounts in libfuzzer rt 2021-03-01 10:20:08 +01:00
Andrea Fioraldi
dc39a5591a format 2021-03-01 10:04:59 +01:00
Andrea Fioraldi
9ba508f77a IndexesLenTimeMinimizerCorpusScheduler in libpng example 2021-03-01 10:04:28 +01:00
Andrea Fioraldi
ff0b6089b4 have libpng example compiling 2021-03-01 09:55:00 +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
0f40ac05d4 readme 2021-02-27 15:12:19 +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
Dominik Maier
fb0d47dc2e tiny fixes 2021-02-26 13:21:12 +01:00
Dominik Maier
4c392de98d more docu 2021-02-26 11:45:30 +01:00
Dominik Maier
15a64c3e17 moved new -> with_seed, with_random_seed -> new 2021-02-26 09:27:34 +01:00
Dominik Maier
d48524168a Moved fuzzer to examples 2021-02-26 08:35:18 +01:00
Dominik Maier
ea278a0dd6 fixed testcases, removed mutator param from mutators 2021-02-25 18:55:37 +01:00
Andrea Fioraldi
ef40abb4b0 remove dummy example 2021-02-23 20:56:04 +01:00
Andrea Fioraldi
5695b4326a comments 2021-02-23 20:49:15 +01:00
Andrea Fioraldi
9f12f9506c comments 2021-02-23 20:45:22 +01:00
Andrea Fioraldi
a5cc8313db new ondisk corpus 2021-02-22 15:19:35 +01:00
Andrea Fioraldi
1575a3994b impl serdeany macro 2021-02-16 14:49:18 +01:00
Andrea Fioraldi
97ad4e92f9 windows crate 2021-02-16 10:47:15 +01:00
Andrea Fioraldi
e99c2daa41 libafl package 2021-02-15 16:54:33 +01:00
Andrea Fioraldi
7236fd9f3c fmt 2021-02-15 15:28:40 +01:00
Andrea Fioraldi
a599a9f998 forward NewTestcase, executor as arg to EventManager::process 2021-02-15 15:27:55 +01:00
Andrea Fioraldi
092f65bbbd forward NewTestcase 2021-02-15 14:41:06 +01:00
Andrea Fioraldi
8059a765ed AflError -> Error & AflShmem -> UnixShMem 2021-02-15 14:10:54 +01:00
Andrea Fioraldi
d16fd07beb save ondisk 2021-02-15 12:19:58 +01:00
Andrea Fioraldi
746d2a326e objective feedbacks 2021-02-15 12:08:57 +01:00
Andrea Fioraldi
7a75155e6b objective corpus and feedbacks 2021-02-15 10:55:05 +01:00
Andrea Fioraldi
e3773e080f split events mod 2021-02-13 10:20:35 +01:00
Andrea Fioraldi
a8dd59f588 map observers file 2021-02-13 00:16:32 +01:00
Andrea Fioraldi
ffab1e021e dictionary mutations 2021-02-12 23:49:58 +01:00