mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-02 16:08:39 +00:00
fuzz: termio.MessageData small_size is max of 255, not 256
This commit is contained in:
@@ -9,7 +9,7 @@ const Config = @import("../config.zig").Config;
|
||||
pub const Message = union(enum) {
|
||||
/// Represents a write request. Magic number comes from the max size
|
||||
/// we want this union to be.
|
||||
pub const WriteReq = termio.MessageData(u8, 256);
|
||||
pub const WriteReq = termio.MessageData(u8, 255);
|
||||
|
||||
/// Set the title of the surface.
|
||||
/// TODO: we should change this to a "WriteReq" style structure in
|
||||
|
@@ -84,6 +84,8 @@ pub const Message = union(enum) {
|
||||
/// are a stable pointer, or require deallocation. This is helpful for thread
|
||||
/// messaging utilities.
|
||||
pub fn MessageData(comptime Elem: type, comptime small_size: comptime_int) type {
|
||||
assert(small_size <= std.math.maxInt(u8));
|
||||
|
||||
return union(enum) {
|
||||
pub const Self = @This();
|
||||
|
||||
|
Reference in New Issue
Block a user