vanitygen icon indicating copy to clipboard operation
vanitygen copied to clipboard

pcre_exec crashes for some regular expressions

Open wladston opened this issue 12 years ago • 4 comments

When I try:

./vanitygen -r "^1(.)(.)(.).*$"

I get the PCRE error: 0. I tried to fix this problem, but I was unable :/

wladston avatar Dec 17 '13 19:12 wladston

What pattern is that supposed to match?

BlinkyStitt avatar Jan 26 '14 22:01 BlinkyStitt

This pattern is just a simplest crash sample, it's supposed to match anything. One interesting pattern that crashes on the same bug is this one

^1(.)(.)(.)(.).?\4\3\2\1[1].*$

It would match an address that starts with a palindrome word.

wladston avatar Jan 26 '14 22:01 wladston

^1....*$ works fine

BlinkyStitt avatar Jan 26 '14 22:01 BlinkyStitt

Yes, but in order to do complex matchings (such as the palindrome), groups (the parenthesis) are required.

wladston avatar Jan 26 '14 23:01 wladston