File tree Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,9 @@ pointers had out of place PCRE2_CALL_CONVENTION in src/pcre2.h.*. These
7575produced errors when building for Windows with #define PCRE2_CALL_CONVENTION
7676__stdcall.
7777
78+ 20. A negative repeat value in a pcre2test subject line was not being
79+ diagnosed, leading to infinite looping.
80+
7881
7982Version 10.40 15-April-2022
8083---------------------------
Original file line number Diff line number Diff line change @@ -6844,9 +6844,9 @@ while ((c = *p++) != 0)
68446844 }
68456845
68466846 i = (int32_t )li ;
6847- if (i -- = = 0 )
6847+ if (i -- < = 0 )
68486848 {
6849- fprintf (outfile , "** Zero repeat not allowed\n" );
6849+ fprintf (outfile , "** Zero or negative repeat not allowed\n" );
68506850 return PR_OK ;
68516851 }
68526852
Original file line number Diff line number Diff line change @@ -5932,4 +5932,7 @@ a)"xI
59325932/[Aa]{2,3}/BI
59335933 aabcd
59345934
5935+ --
5936+ \[X]{-10}
5937+
59355938# End of testinput2
Original file line number Diff line number Diff line change @@ -17746,6 +17746,10 @@ Subject length lower bound = 2
1774617746 aabcd
1774717747 0: aa
1774817748
17749+ --
17750+ \[X]{-10}
17751+ ** Zero or negative repeat not allowed
17752+
1774917753# End of testinput2
1775017754Error -70: PCRE2_ERROR_BADDATA (unknown error number)
1775117755Error -62: bad serialized data
You can’t perform that action at this time.
0 commit comments