bug-gnulib
[Top][All Lists]
Advanced

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

yesterday's grep-2.27 release candidate could infloop


From: Jim Meyering
Subject: yesterday's grep-2.27 release candidate could infloop
Date: Tue, 29 Nov 2016 11:38:02 -0800

Preparing for the release of grep-2.27, I was surprised to find inputs
that triggered an infinite loop.

With yesterday's pre-release snapshot
(http://meyering.net/grep/grep-2.26.37-03b4.tar.xz), this would not
terminate:

  echo cx | LC_ALL=C src/grep -E 'c\b[x ]'

I traced it to a recent change in gnulib's dfa.c and then banged my
head against that code until I understood enough to fix it. I've
attached the gnulib bug fix and the grep patch that adds a test case
and pulls in the gnulib fix.

I'll make a new snapshot later today.

Attachment: gnulib-fix-dfa-infloop.diff
Description: Text document

Attachment: grep-fix-dfa-infloop.diff
Description: Text document


reply via email to

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