mIRC Home    About    Download    Register    News    Help

Print Thread
Expression crashing mIRC #148315 03/05/06 06:29 PM
Joined: Apr 2004
Posts: 759
M
Mpdreamz Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 759
Im sure this is due to it being a crappy expression since it falls into a never ending loop but it might be nice if it didnt cause mIRC to die , theres not even a Send/Dont Send dialog.

//echo -a $regex(word word word,/(\b\w\w\w\w.*?)??(\b\1\b)??(?R)/g)


$maybe
Re: Expression crashing mIRC #148316 03/05/06 07:43 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,876
I guess that's most likely a bug in PCRE. I don't know any other languages that use it so I can't check but maybe someone who does could.

Re: Expression crashing mIRC #148317 25/05/06 02:29 PM
Joined: Dec 2002
Posts: 4,521
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,521
Thanks for the report. This is actually due to PCRE running out of stack space due to infinite recursion. The latest version of PCRE has an option to limit recursion depth, I'll see if I can use that to prevent the problem.