[Bug 202022] bsdgrep -f crash with null pattern
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Jan 20 04:06:25 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202022
Kyle Evans <bsdports at kyle-evans.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bsdports at kyle-evans.net
--- Comment #2 from Kyle Evans <bsdports at kyle-evans.net> ---
Created attachment 179122
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=179122&action=edit
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 matching
everything if appearing on a line of its own.
I've not been able to break it when treated this way.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list