[pcre-dev] [Bug 2532] Throwing C++ exceptions out of pcre2_c…

Pàgina inicial
Delete this message
Autor: admin
Data:  
A: pcre-dev
Assumpte: [pcre-dev] [Bug 2532] Throwing C++ exceptions out of pcre2_callout in jit mode
https://bugs.exim.org/show_bug.cgi?id=2532

Zoltan Herczeg <hzmester@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hzmester@???


--- Comment #1 from Zoltan Herczeg <hzmester@???> ---
I am not sure exception handling is standardized, I think most compilers have
freedom to do it their own way.

However, you can instantly return from a callout, so this could work: capture
the exception by your callout handler, store the exception value temporarily
somewhere, and abort the match. When a match returns with abort, re-throw your
exception.

You can also use the interpreter as you mentioned.

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