[pcre-dev] [Bug 2126] Segfault due to stack overflow for lon…

Page principale
Supprimer ce message
Auteur: admin
Date:  
À: pcre-dev
Sujet: [pcre-dev] [Bug 2126] Segfault due to stack overflow for long strings matching a recursive regex
https://bugs.exim.org/show_bug.cgi?id=2126

--- Comment #1 from Camille Brugel <camille.brugel@???> ---
Sorry, the perl need to be replaced with pcregrep -M "{([^{}]|(?R))*}" (perl
does not segfault).

Ex:

test=$(echo -n "{"; for i in $(seq 15);do; echo -n "a"; done; echo -n "}");echo
$test | pcregrep -M "{([^{}]|(?R))*}"
<WORKS FINE>
test=$(echo -n "{"; for i in $(seq 15000);do; echo -n "a"; done; echo -n
"}");echo $test | pcregrep -M "{([^{}]|(?R))*}"
<SEGFAULT>

--
You are receiving this mail because:
You are on the CC list for the bug.