News for hackers. Stuff that matters.
Re:Fuzzing Zig Code Using AFL++ by AndyKelley on Thursday September 23, 2021 @12:13AM (#28625146)
the lines in question:

    const fuzz_exe_path = try std.fs.path.join(b.allocator, &[_][]const u8{ b.cache_root, fuzz_executable_name });

    // We want `afl-clang-lto -o path/to/output path/to/object.o`
    const fuzz_compile = b.addSystemCommand(&[_][]const u8{ "afl-clang-lto", "-o" });
can be updated to newer syntax:

    const fuzz_exe_path = try std.fs.path.join(b.allocator, &.{ b.cache_root, fuzz_executable_name });

    // We want `afl-clang-lto -o path/to/output path/to/object.o`
    const fuzz_compile = b.addSystemCommand(&.{ "afl-clang-lto", "-o" });
docs: https://ziglang.org/documentation/master/#Anonymous-List-Lit...

added in zig 0.6.0: https://ziglang.org/download/0.6.0/release-notes.html#Tuples...

Re:Fuzzing Zig Code Using AFL++ by squeek502 on Thursday September 23, 2021 @12:22AM (#28625193)
Nice, didn't know list literals could be used for that. Makes sense, though.