bug-grep
[Top][All Lists]
Advanced

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

bug#17245: GREP BUG: grep -P and binary files


From: Jim Meyering
Subject: bug#17245: GREP BUG: grep -P and binary files
Date: Tue, 15 Apr 2014 17:03:00 -0700

On Tue, Apr 15, 2014 at 4:48 PM, Norihiro Tanaka <address@hidden> wrote:
> I confirmed that this bug is also avoided by re-compiling PCRE with
> --enable-git option.
>
> PCRE without --enable-git:
> $ env LC_ALL=en_US.utf8 src/grep -P '.?ma' test-image.png
> Segmentation fault (core dumped)
>
> PCRE with --enable-git:
> $ env LC_ALL=en_US.utf8 src/grep -P '.?ma' test-image.png
> Binary file ../test-image.png matches

Thank you.
I presume you meant --enable-jit.
However, even when building the latest pcre like this:

  ./configure --enable-unicode-properties --enable-utf8 --enable-jit && make

and linking grep with its resulting .a file, my new pcre-infloop test
still failed.
However, with the attached patch to pcre, it passes:

Attachment: k.txt
Description: Text document


reply via email to

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