[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:
k.txt
Description: Text document
- bug#17245: GREP BUG: grep -P and binary files, damon, 2014/04/12
- bug#17245: GREP BUG: grep -P and binary files, Norihiro Tanaka, 2014/04/12
- bug#17245: GREP BUG: grep -P and binary files, Jim Meyering, 2014/04/13
- bug#17245: GREP BUG: grep -P and binary files, Jim Meyering, 2014/04/13
- bug#17245: GREP BUG: grep -P and binary files, Norihiro Tanaka, 2014/04/15
- bug#17245: GREP BUG: grep -P and binary files, Paul Eggert, 2014/04/15
- bug#17245: GREP BUG: grep -P and binary files,
Jim Meyering <=
- bug#17245: GREP BUG: grep -P and binary files, Norihiro Tanaka, 2014/04/16
- bug#16586: bug#17245: GREP BUG: grep -P and binary files, Paul Eggert, 2014/04/21
- bug#17245: GREP BUG: grep -P and binary files, Norihiro Tanaka, 2014/04/21
- bug#16586: bug#17245: GREP BUG: grep -P and binary files, Jim Meyering, 2014/04/23
- bug#16586: bug#17245: GREP BUG: grep -P and binary files, Paul Eggert, 2014/04/24
- bug#16586: bug#17245: GREP BUG: grep -P and binary files, Jim Meyering, 2014/04/24