in reply to safe untrusted regexp
Perl won't let you compile regexps that contain (?{...}) or (??{...}) blocks during runtime unless you also declare use re 'eval'. That won't stop someone from giving you a regexp that's designed to run out of C stack. You could upgrade to the 5.9.3+ regexp engine which isn't recursive and is now fully reentrant to solve that second problem. There are patches against earlier versions of perl but I don't have them handy to link to. Perhaps someone else will.
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: safe untrusted regexp
by jettero (Monsignor) on Aug 16, 2006 at 15:37 UTC | |
by diotalevi (Canon) on Aug 16, 2006 at 16:08 UTC | |
by jettero (Monsignor) on Aug 16, 2006 at 16:50 UTC | |
by ikegami (Patriarch) on Aug 16, 2006 at 17:27 UTC |