szn

Bug 142 — format.zig — expandTruncate integer overflow on large digit sequences

142. format.zig — expandTruncate integer overflow on large digit sequences

File: src/format.zig:409–411 Severity: LOW Status: ✅ FIXED — use wrapping arithmetic (*%, +%) to prevent overflow panic.

while (i < content.len and std.ascii.isDigit(content[i])) {
    n = n * 10 + (content[i] - '0');

No saturating arithmetic. If the digit string represents a number > maxInt(usize), this wraps in release mode.