szn

Bug 172 — catch unreachable on window index formatting — 16-byte buffer can overflow

172. catch unreachable on window index formatting — 16-byte buffer can overflow

File: src/server/server.zig:969 Severity: CRITICAL Status: ✅ FIXED — widened buffer to 32 bytes, replaced catch unreachable with log + error.OutOfMemory.

var idx_buf: [16]u8 = undefined;  // usize max is 20 chars
const idx_len = (std.fmt.bufPrint(&idx_buf, "{}", .{idx}) catch unreachable).len;