bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23983: [PATCH] grep: fix crash with a pattern of alternation of two


From: Norihiro Tanaka
Subject: bug#23983: [PATCH] grep: fix crash with a pattern of alternation of two same characters
Date: Fri, 15 Jul 2016 00:07:13 +0900

Current master crashes with below.

$ printf '0\n0' >pat
$ printf '0\n' >in
$ env LC_ALL=C grep -F pat in

grep -F uses memchr2() for each character in this pattern, but if two
characters is same, the trie has no child.

Attachment: 0001-grep-fix-crash-with-a-pattern-of-alternation-of-two-.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]