[Bug 251081] Grep Crashes with both «--after-context» «--max-count» Switches are Used
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Nov 14 06:51:53 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251081
Igor Kolesnik <igorkolesnik at posteo.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |igorkolesnik at posteo.net
--- Comment #1 from Igor Kolesnik <igorkolesnik at posteo.net> ---
Looks like it strips out the trailing eol character when calling execute in
prpending(). Inside execute memchr() fails to find eol and returns NULL.
This occurs in 13.0-CURRENT as well.
BSD grep does not contain such bug.
Attached is a proposed patch.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list