On Thu, 02 Apr 2026 09:41:01 +0200, Renaud Allard wrote:

> My previous diff had this_line += extra_lines which was wrong:
> it double-counts when the cursor has already moved forward
> past the extra lines during processing.
>
> The correct reset is this_line = 0.  nflushd_lines is always
> 0 at this point (the mid-processing path at line 266 sets
> extra_lines to 0 before updating nflushd_lines).
>
> 0 crashes out of 1000 random inputs containing \v on both
> OpenBSD 7.9/amd64 and 7.9/i386 with UBSan (was ~14% before).

This version looks correct to me.  OK millert@

 - todd

Reply via email to