switch to pkg/afl++ for fuzz

This commit is contained in:
Mitchell Hashimoto
2026-02-28 20:04:07 -08:00
parent 4e47c225b1
commit 3294621430
5 changed files with 19 additions and 17 deletions

View File

@@ -1,6 +1,13 @@
const std = @import("std");
const ghostty_vt = @import("ghostty-vt");
pub export fn zig_fuzz_init() callconv(.c) void {}
pub export fn zig_fuzz_test(buf: [*]const u8, len: isize) callconv(.c) void {
if (len <= 0) return;
ghostty_fuzz_parser(buf, @intCast(len));
}
pub export fn ghostty_fuzz_parser(
input_ptr: [*]const u8,
input_len: usize,