format.zig — expandTruncate integer overflow on large digit sequencesformat.zig — expandTruncate integer overflow on large digit sequencesFile: 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.