On Wed, Sep 28, 2005 at 01:26:27PM +0200, Nicolas Fran=E7ois 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).
>=20
> Does it seems correct to you ?
Message-ID: <email address hidden> 1?Q?Fran= E7ois?= <email address hidden>
Date: Thu, 29 Sep 2005 13:22:39 +0100
From: Tim Waugh <email address hidden>
To: Nicolas =?iso-8859-
Cc: <email address hidden>
Subject: Re: grep hanging with -Fw and an empty pattern
--5sJP8czQtkNNPwfl Disposition: inline Transfer- Encoding: quoted-printable
Content-Type: text/plain; charset=iso-8859-1
Content-
Content-
On Wed, Sep 28, 2005 at 01:26:27PM +0200, Nicolas Fran=E7ois 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).
>=20
> Does it seems correct to you ?
Yes, looks correct to me. Thanks.
Tim.
*/
--5sJP8czQtkNNPwfl pgp-signature Disposition: inline
Content-Type: application/
Content-
-----BEGIN PGP SIGNATURE-----
LYaF94FERAifjAK CnEEfsQ5Va46R1U ZGe2sSp4xbxiwCf SI1X sTTMX7ks=
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDO9yPLF+
9RQwtdl2S4kiAbG
=yWGN
-----END PGP SIGNATURE-----
--5sJP8czQtkNNP wfl--