ragel icon indicating copy to clipboard operation
ragel copied to clipboard

dash in character class causes infinite loop

Open rofl0r opened this issue 4 years ago • 1 comments

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] * ;

rofl0r avatar Oct 06 '20 05:10 rofl0r

Thanks, will have to fix that.

adrian-thurston avatar Oct 18 '20 18:10 adrian-thurston