GNU bug report logs - #18266
grep -P and invalid exits with error

Previous Next

Package: grep;

Reported by: Santiago <santiago <at> debian.org>

Date: Thu, 14 Aug 2014 15:43:02 UTC

Severity: wishlist

Merged with 18455

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 18266 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Santiago <santiago <at> debian.org>, 18266 <at> debbugs.gnu.org
Cc: 758105 <at> bugs.debian.org
Subject: Re: bug#18266: grep -P and invalid exits with error
Date: Thu, 14 Aug 2014 09:15:58 -0700
Santiago wrote:
> Please, revert ca7868cc27db3d9deafaa2e0ac5a2bb0aa8ef373

That commit was necessary to avoid undefined behavior in libpcre.  We 
can't simply undo the commit (unless you want to reintroduce security 
holes into grep :-).  The current behavior is the best we can do, unless 
someone fixes libpcre (which doesn't appear to be likely), or unless 
someone takes the time to write code in grep to work around the problem.

One way forward is suggested in <http://bugs.gnu.org/17245#43>.  No 
doubt there are others.  Can you suggest a volunteer to take this on?




This bug report was last modified 10 years and 249 days ago.

Previous Next


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