[pcre-dev] [Bug 616] Crash

Pàgina inicial
Delete this message
Autor: Philip Hazel
Data:  
A: pcre-dev
Assumpte: [pcre-dev] [Bug 616] Crash
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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




--- Comment #1 from Philip Hazel <ph10@???> 2007-10-13 19:23:36 ---
On Sat, 13 Oct 2007, Felipe Nascimento S. Pena wrote:

> <?php
>
> for ($str = '<', $i = 0; $i < 9999; $i++) {
>     $str .= str_repeat(md5(time()), 100);
> }
> preg_match_all('/<((?:(?!>).)+)>/s', $str, $matches);

>
> ?>


I don't run PHP, so I can't test this directly. However, it looks like a
classic out-of-stack error (because of the very long subject string).
Have a read of the pcrestack man page. Have you tried increasing the
runtime stack for your application?

If you can send a literal string that is being matched, I can try it
with pcretest in a later release of PCRE (7.4 is current) and confirm
this diagnosis.

Regards,
Philip


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