Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dash in character class causes infinite loop #55

Open
rofl0r opened this issue Oct 6, 2020 · 1 comment
Open

dash in character class causes infinite loop #55

rofl0r opened this issue Oct 6, 2020 · 1 comment

Comments

@rofl0r
Copy link

rofl0r commented Oct 6, 2020

with 6.10, [-0-9] or [0-9-] cause a parse error, however with latest git the following expression causes ragel to go into infinite loop:

 main :=  [ \t] +( ( ( ( ( (  [0-9]  {1,3}   >A $E ) [.]   >A $E ) {3}  [0-9]  {1,3}   >A $E )( [/] [0-9] +  >A $E ) {0,1}   >A $E )|(((( [0-9a-f:]  {2,39}   >A $E ) >A $E )|(( [0-9a-f:]  {0,29}  [:] ( ( (  [0-9]  {1,3}   >A $E ) [.]   >A $E ) {3}  [0-9]  {1,3}   >A $E ) >A $E ) >A $E ) >A $E )( [/] [0-9] +  >A $E ) {0,1}   >A $E ) >A $E )|( [a-z0-9._-] +  >A $E ) >A $E ) [ \t\n] * ;
@adrian-thurston
Copy link
Owner

Thanks, will have to fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants