Recovering from a hung regex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

We have a file scanner where data / files is user-supplied and the regexes are OSINT supplied. The script has no control over either and just needs to do its job successfully.

However the script hangs with pcre version 10.34 2019-11-21. This seems like a bug in pcre itself.

Demo: https://github.com/sharmashivanand/php-hang-demo

That said, however what is the right way to recover from such a hang and continue execution when such external libraries fail? We are the developers but the script has a user-base and needs to run in varied environments.

Regards,
Shivanand Sharma

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux