mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 19:45:49 +00:00
16 lines
355 B
Zig
16 lines
355 B
Zig
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);
|
|
}
|