mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-19 14:00:29 +00:00
fuzz: update stream fuzzer to use TerminalStream
ReadonlyStream was removed from the public API. Update the stream fuzzer to use TerminalStream, which is the type now returned by Terminal.vtStream().
This commit is contained in:
@@ -2,7 +2,7 @@ const std = @import("std");
|
||||
const ghostty_vt = @import("ghostty-vt");
|
||||
const mem = @import("mem.zig");
|
||||
const Terminal = ghostty_vt.Terminal;
|
||||
const ReadonlyStream = ghostty_vt.ReadonlyStream;
|
||||
const TerminalStream = ghostty_vt.TerminalStream;
|
||||
|
||||
/// Use a single global allocator for simplicity and to avoid heap
|
||||
/// allocation overhead in the fuzzer. The allocator is backed by a fixed
|
||||
@@ -33,7 +33,7 @@ pub export fn zig_fuzz_test(
|
||||
}) catch return;
|
||||
defer t.deinit(alloc);
|
||||
|
||||
var stream: ReadonlyStream = t.vtStream();
|
||||
var stream: TerminalStream = t.vtStream();
|
||||
defer stream.deinit();
|
||||
|
||||
// Use the first byte to decide between the scalar and slice paths
|
||||
|
||||
Reference in New Issue
Block a user