Bug#181378: grep hanging with -Fw and an empty pattern

2005-09-29 Thread Tim Waugh
On Wed, Sep 28, 2005 at 01:26:27PM +0200, Nicolas François wrote: Changing the 'while (1)' loop to a 'while (len)' loop in search.c fix this issue. However, I don't know if this is correct or optimal (I don't know what should happen if we enter the loop with len0 and len is then decreased to

Bug#181378: grep hanging with -Fw and an empty pattern

2005-09-28 Thread Nicolas François
Hello, Sorry for contacting you directly. I'm trying to port you patch (grep-2.5.1-egf-speedup.patch) to Debian. This patch triggered an issue when an empty pattern is used with the -Fw options. (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=329876) I tried the Fedora grep-2.5.1-48.2