pfalcon / re1.5

re1, the unbloated regexp engine by Russ Cox, elaborated to be useful for real-world applications
BSD 3-Clause "New" or "Revised" License
42 stars 4 forks source link

compilecode: Disallow aQ* and aQ+ (Q is *, + or ?) #27

Closed ampli closed 9 years ago

ampli commented 9 years ago

a+, a?+, a* and a?* cause an "infinite loop" in the recursive, recursiveloop and backtrack VMs.

All of them raise "nothing to repeat" in Python3.

Also add tests.

pfalcon commented 9 years ago

Merged, thanks!