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


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Jim Meyering <jim <at> meyering.net>, Christian Boltz <grep-bug <at> cboltz.de>
Cc: 22181 <at> debbugs.gnu.org, Seth Arnold <seth.arnold <at> canonical.com>
Subject: bug#22181: endless loop in grep 2.22
Date: Fri, 18 Dec 2015 13:50:55 -0800
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 :-).




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.