[pcre-dev] [Bug 1437] Using PCRE-8.34 on x86-64 Linux with …

Page principale
Supprimer ce message
Auteur: Philip Hazel
Date:  
À: pcre-dev
Sujet: [pcre-dev] [Bug 1437] Using PCRE-8.34 on x86-64 Linux with --enable-jit and --enable-utf , grep -iP '^S' gets stuck on a binary file consuming a lot of CPU for many seconds
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1437




--- Comment #14 from Philip Hazel <ph10@???> 2014-01-26 16:31:01 ---
On Sun, 26 Jan 2014, Zoltan Herczeg wrote:

> In my opinion,
>
> - what we cannot do: ensure that UTF-8 matching works correctly on an invalid
> UTF input.


I entirely agree.

> - what we can do: if certain conditions are fulfilled, we can ensure that there
> will be no infinite loop or buffer over-read (and segmentation fault).


That would be useful, but I do not consider it to be vital because it is
clearly documented that the result of using PCRE_NO_UTF_CHECK with
invalid UTF data is undefined.

Regards,
Philip


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email