Re: Recovering from a hung regex
| From: | Ashley Sheridan | Date: | Mon, 25 May 2020 15:25:01 +0000 |
| Subject: | Re: Recovering from a hung regex | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-327165@lists.php.net to get a copy of this message | ||
On May 25, 2020 3:00:02 PM UTC, Shivanand Sharma <shivanand@binaryturf.com> wrote:
>Hi Ashley,
>
>It's very simple to fix that bug. Changing the regex or the payload is
>able
>to fix it or even an update to the PCRE lib. However that said, in my
>original post the concern is not to fix this bug but to recover from
>such a
>potential hang which breaks my application. Error handling is the
>concern,
>not the presence of the bug itself.
>
>Regards,
>Shivanand Sharma
I don't know of any way to "recover" beyond pushing this task out to an external
process. You haven't given enough information yet to determine if it's truly a hang or
just takes a long time, or what system this is even being run on.
Thanks,
Ash