bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18266: grep -P and invalid exits with error


From: Santiago
Subject: bug#18266: grep -P and invalid exits with error
Date: Thu, 28 Aug 2014 22:47:54 -0700
User-agent: Mutt/1.5.23 (2014-03-12)

El 16/08/14 a las 11:36, Paul Eggert escribió:
> Santiago wrote:
> >Another solution would be to don't check if binary files are valid
> >(passing PCRE_NO_UTF8_CHECK to pcre_exec), but I don't know if that'd
> >avoid security holes
> 
> It wouldn't.  (We already tried it.)
> 

Another try. This patch is by far more efficient.
With the previous patch #1:

 % time grep -P faz /usr/bin/*                                            
 ...
 grep: /usr/bin/X11: Es un directorio
 grep -P faz /usr/bin/*  519,78s user 0,32s system 99% cpu 8:41,19 total

 With this one:

  % time src/grep -P faz /usr/bin/*
  src/grep -P faz /usr/bin/*  7,36s user 0,33s system 99% cpu 7,695 total

Cheers,

Santiago

Attachment: grep-pcresearch-clean-utf8-2.patch
Description: Text Data

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]