Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Oct 2022 09:59:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 267032] diff(1) -U and -C with very large number of context may produce incorrect line indicator
Message-ID:  <bug-267032-227-62NrNMXzRT@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-267032-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-267032-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267032

--- Comment #2 from Daniel Tameling <tamelingdaniel@gmail.com> ---
Created attachment 237325
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D237325&action=
=3Dedit
proposed fix for the integer overflows.

The patch assumes that a,b,c,d represent line numbers and are thus always
positive.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267032-227-62NrNMXzRT>