Date: Sat, 21 Jan 2017 05:32:30 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 195763] bsdgrep, empty matches and -o Message-ID: <bug-195763-8-QH1xgLnTzx@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-195763-8@https.bugs.freebsd.org/bugzilla/> References: <bug-195763-8@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=3D195763 Kyle Evans <bsdports@kyle-evans.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #179171|0 |1 is obsolete| | --- Comment #4 from Kyle Evans <bsdports@kyle-evans.net> --- Created attachment 179173 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D179173&action= =3Dedit Proposed patch to address line matching issues The failure in bug #181263 case 1 also ended up being fairly straightforwar= d to address -- pmatch gets clobbered by a non-matching case and ended up with b= ogus values, so now we look at the last *actual match* (if st isn't advancing) a= nd see if that ends up being a zero-length match. This catches corner cases like the one found where .* can infinitely match = but the 'a' pattern comes second. It shouldn't affect any legitimate cases, sin= ce those will cause an advancement in nst prior to this. --=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-195763-8-QH1xgLnTzx>