Comment 57 for bug 7906

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Thu, 29 Sep 2005 13:22:39 +0100
From: Tim Waugh <email address hidden>
To: Nicolas =?iso-8859-1?Q?Fran=E7ois?= <email address hidden>
Cc: <email address hidden>
Subject: Re: grep hanging with -Fw and an empty pattern

--5sJP8czQtkNNPwfl
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDO9yPLF+LYaF94FERAifjAKCnEEfsQ5Va46R1UZGe2sSp4xbxiwCfSI1X
9RQwtdl2S4kiAbGsTTMX7ks=
=yWGN
-----END PGP SIGNATURE-----

--5sJP8czQtkNNPwfl--