File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed
Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -7620,7 +7620,7 @@ while ((c = *p++) != 0)
76207620 }
76217621
76227622 replen = CAST8VAR (q ) - start_rep ;
7623- if (replen > (SIZE_MAX - needlen ) / i )
7623+ if (i > 0 && replen > (SIZE_MAX - needlen ) / i )
76247624 {
76257625 fprintf (outfile , "** Expanded content too large\n" );
76267626 return PR_OK ;
Original file line number Diff line number Diff line change 45594559/(abc)*/
45604560 \[abc]{5}
45614561
4562+ /(abc)*/
4563+ \[abc]{1}
4564+
4565+ /(abc)*/
4566+ \[abc]{0}
4567+
45624568/^/gm
45634569 \n\n\n
45644570
Original file line number Diff line number Diff line change @@ -14772,6 +14772,15 @@ No match
1477214772 0: abcabcabcabcabc
1477314773 1: abc
1477414774
14775+ /(abc)*/
14776+ \[abc]{1}
14777+ 0: abc
14778+ 1: abc
14779+
14780+ /(abc)*/
14781+ \[abc]{0}
14782+ ** Zero or negative repeat not allowed
14783+
1477514784/^/gm
1477614785 \n\n\n
1477714786 0:
You can’t perform that action at this time.
0 commit comments