Commit Graph

58 Commits

Author SHA1 Message Date
Jonathan Ringer
2804d0814f afl: fix build 2021-05-08 01:29:18 -07:00
Ben Siraphob
76f93cc731 pkgs/tools: pkgconfig -> pkg-config 2021-01-16 23:49:59 -08:00
Ben Siraphob
8c5d37129f pkgs/tools: stdenv.lib -> lib 2021-01-15 17:12:36 +07:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
R. RyanTM
e9062ea238 afl: 2.56b -> 2.57b 2020-07-02 01:05:31 +00:00
Robert Scott
1985c6b9d5 afl: fix afl-clang-fast++ by making it a copy of afl-clang-fast, not a symlink
a symlink gets skipped by wrapProgram and this ends up confusing the nix
cc wrapper's cpp mode detection
2020-04-25 10:04:06 -05:00
Konrad Borowski
02af438989 libdislocator: update homepage link to use HTTPS 2020-04-24 19:44:59 -07:00
Konrad Borowski
58d59e58d2 afl: update homepage link to use HTTPS 2020-04-24 19:44:59 -07:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Rick van Schijndel
9d212f5be7
afl: Fix afl-qemu build by applying new patches
These patches are gathered from different sources,
such as https://patchwork.kernel.org/patch/10862231/ for the
`gettid` patch.
Another patch comes from the issue in the AFL repository.
The ultimate goal is to get these patches upstream as well,
so we don't keep these general patches only within nixos.

A PR is created against Google/AFL
https://github.com/google/AFL/pull/79,
but it might take a while before it's landed, considering the history
of the project (there are more PRs open).

ZHF: #80379

Fixes issue #82232
2020-03-13 21:43:51 +01:00
Robert Scott
de0e71780c afl: 2.52b -> 2.56b
can remove qemu glibc patch as it is now covered by afl's own patches
2019-12-30 10:21:19 -06:00
John Ericson
9b090ccbca treewide: Get rid of most parseDrvName without breaking compat
That is because this commit should be merged to both master and
release-19.09.
2019-11-24 17:22:28 +00:00
volth
08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Robert Scott
038b2f5e9f afl: add self to maintainers list 2019-04-10 22:23:08 +01:00
Robert Scott
b401d87329 afl-qemu: remove unnecessary build dependencies: this is a minimal build of qemu 2019-04-10 22:23:08 +01:00
Robert Scott
d3414f4132 libdislocator: init at 2.52b 2019-02-13 22:06:33 +00:00
Jörg Thalheim
e2b79b10b5
afl: various cleanups 2019-01-05 17:22:24 +01:00
Jörg Thalheim
5da3d039d4
qemu-afl: various cleanups 2019-01-05 17:22:06 +01:00
Robert Scott
5a09820a13 afl-qemu: update to qemu 2.10.0, as specified by afl 2.52b
refresh patches & configure options directly from afl 2.52b to make
installation as vanilla as possible
2018-12-22 21:07:26 +00:00
John Ericson
2c2f1e37d4 reewide: Purge all uses stdenv.system and top-level system
It is deprecated and will be removed after 18.09.
2018-08-30 17:20:32 -04:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Jörg Thalheim
e38cb9b926 afl: disable aarch64 2018-02-19 19:59:28 +02:00
Jörg Thalheim
0565e1e732 afl: fix build, by switch to gcc as compiler
Apparently they set CFLAGS incompatible with clang.
Also only provide a default value for AFL_CC/AFL_CXX for afl-clang-fast:
User might want to overriding, but this is not a PATH variable that can
be prepended with :.
2018-02-19 19:59:28 +02:00
Orivej Desh
15ba4a5cfd afl: 2.51b -> 2.52b
Fix build with glibc 2.26.

Tracking issue: #31696
2017-11-16 17:11:10 +00:00
Tuomas Tynkkynen
42a3be191d afl: 2.48b -> 2.51b 2017-09-13 16:28:48 +03:00
Daiderd Jordan
8706664ff6
afl: use clangStdenv
Fixes #28712
2017-09-05 22:00:44 +02:00
Tuomas Tynkkynen
3c9897431b afl: 2.44b -> 2.48b 2017-07-18 22:15:22 +03:00
Tuomas Tynkkynen
d453e8baad afl: 2.43b -> 2.44b 2017-07-04 17:30:02 +03:00
Tuomas Tynkkynen
ffa0489310 afl: 2.42b -> 2.43b 2017-06-19 17:46:52 +03:00
Tuomas Tynkkynen
399afc13e4 afl: 2.41b -> 2.42b 2017-06-08 23:13:06 +03:00
Tuomas Tynkkynen
e1805301af afl: 2.35b -> 2.41b 2017-05-14 04:15:24 +03:00
zimbatm
f9281609ae afl: 2.23b -> 2.35b 2016-12-11 00:28:14 +00:00
Frederik Rietdijk
b91c43d8d3 afl-qemu: use python2 2016-11-24 22:28:04 +01:00
Joachim Fasting
9e2937ca65 afl: 2.10b -> 2.23b
Looks like mostly performance enhancements and stability fixes.  The main
user facing changes appear to be:

- The -Z option was removed
- A macro named FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION is defined when
    compiling with afl-gcc

Full changelog at http://lcamtuf.coredump.cx/afl/ChangeLog.txt
2016-08-02 07:38:00 +02:00
Corbin
264cb737f6 afl: 1.94b -> 2.10b
Includes afl-analyze. QEMU support not tested.
2016-04-26 18:45:12 -07:00
Austin Seipp
dc3ae3beaa nixpkgs: afl 1.93b -> 1.94b
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-09-20 12:47:59 -05:00
Austin Seipp
15bd0b8f19 nixpkgs: afl 1.88b -> 1.93b
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-09-10 08:55:19 -05:00
Austin Seipp
b1f502b94e nixpkgs: afl 1.86b -> 1.88b
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-08-31 03:17:16 -05:00
Austin Seipp
5d964375e5 nixpkgs: afl 1.83b -> 1.86b
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-08-17 17:18:10 -05:00
Austin Seipp
1ee742b0ef nixpkgs: afl 1.80b -> 1.83b
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-06-14 14:28:00 -05:00
Austin Seipp
6fbc62419b nixpkgs: afl 1.67b -> 1.80b
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-05-27 16:36:26 -05:00
Austin Seipp
5cb0b0b28b nixpkgs: afl 1.64b -> 1.67b
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-04-14 14:05:46 -05:00
Austin Seipp
7200556e5d nixpkgs: afl - fix llvm-mode
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-04-11 22:00:54 -05:00
Austin Seipp
047e77274c nixpkgs: afl 1.63b -> 1.64b
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-04-11 20:22:43 -05:00
Austin Seipp
600b7e5945 nixpkgs: afl 1.58b -> 1.63b
- Adds new LLVM-based instrumentation support via afl-clang-fast.
  - Experimental support for cgroup management via afl-cgroup, to
    mitigate OOM issues when using afl with address sanitizer.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-04-11 15:26:31 -05:00
Austin Seipp
5b0310ec59 nixpkgs: afl 1.57b -> 1.58b
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-03-28 01:51:00 -05:00
Austin Seipp
a11078a78c nixpkgs: afl - add QEMU support
This adds support for `afl-fuzz -Q`, which can be used to instrument
arbitrary black-box binary code for fuzz testing using American Fuzzy
Lop through QEMU emulation.

This requires a custom QEMU 2.2.0 build of the Linux userspace emulators
(system emulators aren't required) with some custom patches. Furthermore
we have to patch the patches a little to make the build more sane (there
are some notes in the README about this).

Overall, the addition of this feature by default doesn't significantly
impact build times (since building QEMU for only one target builds only
a fraction of the source code, and many features are disabled), so it's
enabled by default.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-03-22 22:52:57 -05:00
Austin Seipp
624fcfce64 nixpkgs: afl 1.56b -> 1.57b
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-03-22 18:29:57 -05:00
Austin Seipp
ed75d612d6 nixpkgs: afl 1.49b -> 1.56b
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-03-10 01:19:51 -05:00