cmdResizePane signed overflow on accumulated adjustmentscmdResizePane signed overflow on accumulated adjustmentsFile: src/cmd/cmd.zig:949–1006
Severity: MEDIUM
Status: ✅ FIXED — cmdResizePane defines MAX_PANE_DIM = 10_000; explicit -x/-y sizes outside [1, MAX_PANE_DIM] now return .err instead of being silently clamped, and relative -U/-D/-L/-R adjustments are clamped with @min(..., MAX_PANE_DIM) so a saturated huge value can’t attempt an absurd grid allocation. Regression tests: resize-pane -U 2147483647 -U 1 clamps to MAX_PANE_DIM, and an explicit resize-pane -y 2147483647 returns .err.
adjust_h += val; // lines 959/968/977
adjust_w += val; // line 986
Adjustments use plain i32 arithmetic on user-parsed values with the bounds check afterwards. resize-pane -U 2147483647 -U 1 overflows → panic in Debug, silent wrap in ReleaseFast, then a bogus new_h.