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




Reply via email to