retitle 476419 libpcre3: stack overflow via certain regular expressions
thanks

Hi!

This really seems to be what valgrind says it is -- Stack overflow.
Kai's regular expression triggers deep recursion in match(), finally
leading to a stack overflow after ~8000 nested calls (on Debian).

Attached is a simple pcre-only reproducer.  Should SEGV with arguments
~4100.

Default recursion limit assumed by pcre seems to be set way too high.
Rebuilding pcre with --with-match-limit-recursion set to lower value
avoids SEGVs.

-- 
Tomas Hoger

Attachment: deb476419.sh
Description: application/shellscript

Reply via email to