[pcre-dev] [Bug 2120] PCRE2_NO_UTF_CHECK does not disable al…

Startseite
Nachricht löschen
Autor: admin
Datum:  
To: pcre-dev
Betreff: [pcre-dev] [Bug 2120] PCRE2_NO_UTF_CHECK does not disable all checks
https://bugs.exim.org/show_bug.cgi?id=2120

--- Comment #1 from Philip Hazel <ph10@???> ---
I've just looked at pcre2_valid_utf.c, and it contains only 399 lines. So I'm
afraid I'm confused. Aha! You mean line 1473 in pcre2_compile.c. OK, I see what
you mean. NO_UTF_CHECK was conceived as a way of bypassing the literal check of
the pattern input string for performance reasons. I hadn't considered the idea
of disabling the checks on escapes such as \x{df00}. Now I think about it, I
agree that it probably makes sense to add this functionality rather than invent
yet another (relatively rare) option.

I'll look at the code in more detail tomorrow.

--
You are receiving this mail because:
You are on the CC list for the bug.