Skip to content

Commit 0b29186

Browse files
committed
fuzz: update README for current Nix instructions
We should really move to cargo-fuzz which is much easier to use on NixOS (though it requires a nightly compiler so may make things harder on Guix).
1 parent 1af2b19 commit 0b29186

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fuzz/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ To build honggfuzz, you must have libunwind on your system, as well as
1313
libopcodes and libbfd from binutils **2.38** on your system. The most
1414
recently-released binutils 2.39 has changed their API in a breaking way.
1515

16-
On Nix, you can obtain these libraries by running
16+
On Nix, you can obtain these libraries, and disable some hardening flags
17+
which conflict with the way honggfuzz builds its targets, by running
1718

1819
nix-shell -p libopcodes_2_38 -p libunwind
20+
# In the nix-shell run these
21+
NIX_HARDENING_ENABLE=''${NIX_HARDENING_ENABLE/fortify/}
22+
NIX_HARDENING_ENABLE=''${NIX_HARDENING_ENABLE/fortify3/}
1923

2024
and then run fuzz.sh as above.
2125

0 commit comments

Comments
 (0)