mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-20 14:25:19 +00:00
switch to pkg/afl++ for fuzz
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user