From 5b2463aa13324778e3eee6d2eef2e6c575039873 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Dec 03 2004 13:16:22 +0000 Subject: - Fixed a busy loop in the egf-speedup patch (bug #140781). --- diff --git a/grep-2.5.1-egf-speedup.patch b/grep-2.5.1-egf-speedup.patch index bad36a6..749ca7d 100644 --- a/grep-2.5.1-egf-speedup.patch +++ b/grep-2.5.1-egf-speedup.patch @@ -327,7 +327,7 @@ + if (len == (size_t) -1 || len == (size_t) -2 || len == 0) + { + memset (&mbs, '\0', sizeof (mbstate_t)); -+ continue; ++ len = 1; + } + if (len == 1 && *end == eol) + break; diff --git a/grep.spec b/grep.spec index 492a71b..98dfeab 100644 --- a/grep.spec +++ b/grep.spec @@ -1,7 +1,7 @@ Summary: The GNU versions of grep pattern matching utilities. Name: grep Version: 2.5.1 -Release: 40 +Release: 41 License: GPL Group: Applications/Text Source: ftp://ftp.gnu.org/pub/gnu/grep/grep-%{version}.tar.bz2 @@ -85,6 +85,9 @@ fi %{_mandir}/*/* %changelog +* Fri Dec 3 2004 Tim Waugh 2.5.1-41 +- Fixed a busy loop in the egf-speedup patch (bug #140781). + * Thu Nov 18 2004 Tim Waugh 2.5.1-40 - Fixed a bug in the fgrep patch, exposed by the dfa-optional patch (bug #138558).