bug#15472: segmentation fault if input line is too long

2013-09-28 Thread Jim Meyering
On Thu, Sep 26, 2013 at 5:21 AM, Holger Then wrote: > If grep searches through a line that is longer than > INT_MAX (= 2147483647) characters, then grep causes ... > $ tail -c 2147483647 grep_bug.txt | grep -e 1 | wc > 1 8385663 2147483647 > $ tail -c 2147483648 grep_bug.txt | grep -e 1 | wc

bug#15472: segmentation fault if input line is too long

2013-09-27 Thread Holger Then
If grep searches through a line that is longer than INT_MAX (= 2147483647) characters, then grep causes a segmentation fault. Interestingly this bug does not occur with fgrep or with grep -F Kind regards, Holger $ wc grep_bug.txt 1 12200610 3281667946 grep_bug.txt $ fgrep -e 1 grep_