Date: Fri, 20 Jan 2017 04:06:24 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 202022] bsdgrep -f crash with null pattern Message-ID: <bug-202022-8-MOSsHBceQ0@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-202022-8@https.bugs.freebsd.org/bugzilla/> References: <bug-202022-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=3D202022 Kyle Evans <bsdports@kyle-evans.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bsdports@kyle-evans.net --- Comment #2 from Kyle Evans <bsdports@kyle-evans.net> --- Created attachment 179122 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D179122&action= =3Dedit Proposed patch to fix -f issue with single null byte for pattern Hi, I'm attaching a patch that theoretically addresses this in line with how we otherwise treat null bytes as early terminators of the pattern -- thus matc= hing everything if appearing on a line of its own. I've not been able to break it when treated this way. --=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-202022-8-MOSsHBceQ0>