Clean up how fuzzers are laid out

This commit is contained in:
Mitchell Hashimoto
2026-03-01 13:56:31 -08:00
parent e081a4abb4
commit 4f44879c3b
696 changed files with 67 additions and 62 deletions

View File

@@ -0,0 +1,15 @@
const std = @import("std");
const ghostty_vt = @import("ghostty-vt");
pub export fn zig_fuzz_init() callconv(.c) void {
// Nothing to do
}
pub export fn zig_fuzz_test(
buf: [*]const u8,
len: usize,
) callconv(.c) void {
var p: ghostty_vt.Parser = .init();
defer p.deinit();
for (buf[0..@intCast(len)]) |byte| _ = p.next(byte);
}