4147 Commits

Author SHA1 Message Date
Dominik Maier
de69ba01ba testcase fixes for unicorn 2021-05-09 22:40:58 +02:00
realmadsci
1d9a3d955c
Fix memory errors when trim causes testcase growth (#881) (#903)
* Revert "fixed potential double free in custom trim (#881)"

This reverts commit e9d2f72382cab75832721d859c3e731da071435d.

* Revert "fix custom trim for increasing data"

This reverts commit 86a8ef168dda766d2f25f15c15c4d3ecf21d0667.

* Fix memory errors when trim causes testcase growth

Modify trim_case_custom to avoid writing into in_buf because
some custom mutators can cause the testcase to grow rather than
shrink.

Instead of modifying in_buf directly, we write the update out
to the disk when trimming is complete, and then the caller is
responsible for refreshing the in-memory buffer from the file.

This is still a bit sketchy because it does need to modify q->len in
order to notify the upper layers that something changed, and it could
end up telling upper layer code that the q->len is *bigger* than
the buffer (q->testcase_buf) that contains it, which is asking
for trouble down the line somewhere...

* Fix an unlikely situation

Put back some `unlikely()` calls that were in
the e9d2f72382cab75832721d859c3e731da071435d commit that was
reverted.
2021-05-07 00:14:16 +02:00
Dominik Maier
187ca8e18b more unicorn fixes 2021-05-06 21:51:02 +02:00
Dominik Maier
7317a594fe unicorn fixes 2021-05-06 17:14:53 +02:00
David CARLIER
c3b19f5bf8
instrumentation further move to C++11 (#900) 2021-05-06 15:59:29 +02:00
Dominik Maier
6dc82e620b unicorn mips fixes 2021-05-06 12:06:58 +02:00
Dominik Maier
0618722e49 not on qemu 3 anymore 2021-05-05 18:52:09 +02:00
hexcoder-
c695a031b8 prepare for 32-bit support (later) 2021-05-04 21:34:32 +02:00
hexcoder-
be493f0aba set ARCH for linux intel 32-bit for frida-gum-devkit 2021-05-04 21:32:03 +02:00
hexcoder-
b35e6deb09 fix persistent mode (64-bit) 2021-05-04 20:42:24 +02:00
hexcoder
dd96f01a16
typos 2021-05-04 16:05:07 +02:00
hexcoder-
361dd6e361 add new test for frida_mode (please review) 2021-05-03 21:42:04 +02:00
hexcoder-
e2e7f3f0b5 clarify that no modifications are required. 2021-05-03 20:55:06 +02:00
van Hauser
26f1607766
reverse push (#901)
* Create FUNDING.yml

* Update FUNDING.yml

* disable QEMU static pie

Co-authored-by: Andrea Fioraldi <andreafioraldi@gmail.com>
2021-05-03 11:22:18 +02:00
hexcoder-
6119c2eb5f remove the input file .cur_input at the end of the fuzzing, if AFL_TMPDIR is used 2021-05-01 14:03:28 +02:00
WorksButNotTested
c6e8314446
Support for AFL_ENTRYPOINT (#898)
Co-authored-by: Your Name <you@example.com>
2021-04-30 23:42:50 +02:00
vanhauser-thc
86452cc959 fix stdin trimming 2021-04-30 23:41:06 +02:00
vanhauser-thc
f4cc718fdc let aflpp_qemu_driver_hook.so build fail gracefully 2021-04-30 13:56:23 +02:00
vanhauser-thc
56882f3a49 fix statsd writing 2021-04-30 13:44:59 +02:00
vanhauser-thc
094cd917b6 frida: complog -> cmplog 2021-04-30 13:39:50 +02:00
Dominik Maier
38f1394e3a error handling, freeing mem 2021-04-30 13:37:59 +02:00
Dominik Maier
e9d2f72382 fixed potential double free in custom trim (#881) 2021-04-30 13:37:59 +02:00
hexcoder
758bc770a8
typos 2021-04-30 12:02:26 +02:00
vanhauser-thc
caf282040f update changelog 2021-04-30 11:09:49 +02:00
vanhauser-thc
070c9923e2 nits 2021-04-30 10:33:00 +02:00
WorksButNotTested
765f3e5169
Added representative fuzzbench test and test for libxml (#893)
* Added representative fuzzbench test and test for libxml

* Added support for building FRIDA from source with FRIDA_SOURCE=1

Co-authored-by: Your Name <you@example.com>
2021-04-30 10:28:20 +02:00
vanhauser-thc
c9d066038f fix PCGUARD, build aflpp_driver with fPIC 2021-04-30 10:27:43 +02:00
vanhauser-thc
17b860d811 nits 2021-04-29 15:09:20 +02:00
vanhauser-thc
29dbe665a7 nits 2021-04-29 09:12:21 +02:00
WorksButNotTested
26b84e3521
Fixes for aarch64, OSX and other minor issues (#891)
Co-authored-by: Your Name <you@example.com>
2021-04-29 09:06:14 +02:00
vanhauser-thc
aeb6883532 update grammar mutator 2021-04-28 23:29:13 +02:00
vanhauser-thc
423c32969c nit 2021-04-28 22:48:43 +02:00
vanhauser-thc
97dbf5b671 nits 2021-04-28 21:41:04 +02:00
vanhauser-thc
6a134e4a26 frida mode - support non-pie 2021-04-28 21:35:27 +02:00
vanhauser-thc
dedeb01ffa nits 2021-04-28 21:05:21 +02:00
WorksButNotTested
3a0d4fe0d0
Bumped warnings up to the max and fixed remaining issues (#890)
Co-authored-by: Your Name <you@example.com>
2021-04-28 19:26:19 +02:00
Dmitry Zheregelya
f112357e61
Integer overflow/underflow fixes in libdislocator (#889)
* libdislocator: fixing integer overflow in 'max_mem' variable and setting 'max_mem' type to 'size_t'

* libdislocator: fixing potential integer underflow in 'total_mem' variable due to its different values in different threads
2021-04-28 17:42:20 +02:00
vanhauser-thc
da65eef572 fix frida mode 2021-04-28 12:57:29 +02:00
vanhauser-thc
dde0538b48 nits 2021-04-28 10:59:34 +02:00
WorksButNotTested
39ad3b8946
Frida persistent (#880)
* Added x64 support for persistent mode (function call only), in-memory teest cases and complog

* Review changes, fix NeverZero and code to parse the .text section of the main executable. Excluded ranges TBC

* Various minor fixes and finished support for AFL_INST_LIBS

* Review changes

Co-authored-by: Your Name <you@example.com>
2021-04-28 10:25:26 +02:00
vanhauser-thc
8da5cba401 update util readme 2021-04-26 20:20:47 +02:00
vanhauser-thc
bd38fb6722 fix qdbi 2021-04-26 20:19:08 +02:00
Dominik Maier
4d40afe54f fixed example location 2021-04-26 16:12:25 +02:00
Dominik Maier
5c705fbb92 unicorn speedtest makefile cleanup 2021-04-26 16:03:46 +02:00
Dominik Maier
a3f8fc5d1c moved custom_mutator examples 2021-04-26 16:03:08 +02:00
van Hauser
3d830daa46
sync (#886)
* Create FUNDING.yml

* Update FUNDING.yml
2021-04-24 10:54:39 +02:00
vanhauser-thc
3b5fa3632b drop support for llvm < 6.0 2021-04-19 11:05:49 +02:00
vanhauser-thc
86a8ef168d fix custom trim for increasing data 2021-04-19 11:05:49 +02:00
van Hauser
b41ea92a67
Merge pull request #883 from veritas501/fix-typo
fix-typo
2021-04-19 10:33:23 +02:00
veritas501
2bd7206ec5 fix-typo: "WIn32" -> "Win32" 2021-04-19 10:49:28 +08:00