Comment 56 for bug 7906

Revision history for this message
In , Tim Waugh (twaugh) wrote : Re: grep hanging with -Fw and an empty pattern

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 len>0 and len is then
> decreased to 0; Maybe this should also be catched earlier).
>
> Does it seems correct to you ?

Yes, looks correct to me. Thanks.

Tim.
*/