Re: [pcre-dev] Getting crash when searching binary data with…

Pàgina inicial
Delete this message
Autor: Thomas Tempelmann
Data:  
A: pcre-dev
Assumpte: Re: [pcre-dev] Getting crash when searching binary data with case-insensitive option
I have uploaded a rather short binary file here:
http://files.tempel.org/tmp/pcre2_subject_sample.

If you use my sample code to search for "AWAVAUATSH", it won't find it with
PCRE2_MATCH_INVALID_UTF but will find it with the PCRE2_UTF option (no
crash in this small file, though).
So, whenever I use PCRE2_MATCH_INVALID_UTF, text won't be found at all in
binary files, it seems. That contradicts the docs and Philip's suggestion,
though.

What am I doing wrong?

Thomas