GNU bug report logs - #22181
endless loop in grep 2.22

Previous Next

Package: grep;

Reported by: Christian Boltz <grep-bug <at> cboltz.de>

Date: Tue, 15 Dec 2015 20:47:01 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 22181-done <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Seth Arnold <seth.arnold <at> canonical.com>,
 Christian Boltz <grep-bug <at> cboltz.de>, 22181-done <at> debbugs.gnu.org
Subject: Re: bug#22181: endless loop in grep 2.22
Date: Fri, 18 Dec 2015 22:24:14 -0800
[Message part 1 (text/plain, inline)]
On Fri, Dec 18, 2015 at 1:50 PM, Paul Eggert <eggert <at> cs.ucla.edu> wrote:
> On 12/18/2015 12:52 PM, Jim Meyering wrote:
>>
>> And here is the patch that will form the basis of a complete fix:
>
> Thanks for looking into that; you beat me to it!
>
> POSIX says grep has undefined behavior when given an encoding error, and
> looping forever sure fills the bill :-).

:-)

Here is the patch I expect to push tomorrow. I am using
the occasion of this reply to close the bug report by inserting
"-done" in the bug email address. Any reply will still go both to
the mailing list and to the bug-tracking system.
[0001-grep-oP-don-t-infloop-when-processing-invalid-UTF8-p.patch (text/x-patch, attachment)]

This bug report was last modified 9 years and 133 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.