[pcre-dev] [Bug 2395] pcre_exec does not show estimated stac…

トップ ページ
このメッセージを削除
著者: admin
日付:  
To: pcre-dev
題目: [pcre-dev] [Bug 2395] pcre_exec does not show estimated stack usage with -O2 or higher
https://bugs.exim.org/show_bug.cgi?id=2395

Philip Hazel <ph10@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
             Status|NEW                         |RESOLVED


--- Comment #1 from Philip Hazel <ph10@???> ---
I'm sorry to have to say that adding this feature to PCRE1 was a mistake. I
wasn't sufficiently clued up about the different ways compilers work. So yes,
sometimes it will work and sometimes it won't.

The feature is not present in PCRE2 (by the time that came along, I was more
clued up) but for PCRE2 it isn't needed, because the latest versions of PCRE2
do not use the stack for remembering recursion points. Instead, the heap is
used, and there are better controls for limiting how much.

PCRE2 has now been around for 4 years, and PCRE1 is getting bare minimal
attention (one of these days it will be frozen). I am not convinced it is worth
doing anything about this issue, especially as there is unlikely to be a new
release for at least a year.

I advise all PCRE users to think seriously about upgrading to PCRE2. I know
it's a bit of work, but if you are in a situation where the stack usage is an
issue, I'm sure it is worth it. In addition, you will get the new features that
have been added to PCRE2. It is also the case that the code of PCRE2 has been
subject to a lot of security-checking scanning and fuzz checking that has not
happened for PCRE1. If you are in a security-conscious situation, that's
another reason for upgrading.

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