File tree 6 files changed +800
-794
lines changed
6 files changed +800
-794
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,8 @@ includes underscore.
132
132
matches the "fullwidth" versions of the hex digits. Just like it is done for
133
133
[:digit:], PCRE2_EXTRA_ASCII_DIGIT can be used to keep this class ASCII only.
134
134
135
+ 34. GitHub PR305 fixes a potential integer overflow in pcre2_dfa_match().
136
+
135
137
136
138
Version 10.42 11-December-2022
137
139
------------------------------
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ <h1>pcre2_set_compile_extra_options man page</h1>
36
36
PCRE2_EXTRA_ASCII_BSD \d remains ASCII in UCP mode
37
37
PCRE2_EXTRA_ASCII_BSS \s remains ASCII in UCP mode
38
38
PCRE2_EXTRA_ASCII_BSW \w remains ASCII in UCP mode
39
- PCRE2_EXTRA_ASCII_DIGIT [:digit:] POSIX class remains ASCII in UCP mode
39
+ PCRE2_EXTRA_ASCII_DIGIT [:digit:] and [:xdigit:] POSIX classes remain ASCII in UCP mode
40
40
PCRE2_EXTRA_ASCII_POSIX POSIX classes remain ASCII in UCP mode
41
41
PCRE2_EXTRA_BAD_ESCAPE_IS_LITERAL Treat all invalid escapes as a literal following character
42
42
PCRE2_EXTRA_CASELESS_RESTRICT Disable mixed ASCII/non-ASCII case folding
Original file line number Diff line number Diff line change @@ -2013,8 +2013,8 @@ <h1>pcre2api man page</h1>
2013
2013
< pre >
2014
2014
PCRE2_EXTRA_ASCII_DIGIT
2015
2015
</ pre >
2016
- This option forces the POSIX character class [:digit:] to match only ASCII
2017
- digits, even when PCRE2_UCP is set.
2016
+ This option forces the POSIX character classes [:digit:] and [:xdigit:] to
2017
+ match only ASCII digits, even when PCRE2_UCP is set.
2018
2018
< pre >
2019
2019
PCRE2_EXTRA_ASCII_POSIX
2020
2020
</ pre >
Original file line number Diff line number Diff line change @@ -1580,15 +1580,17 @@ <h1>pcre2pattern man page</h1>
1580
1580
</ P >
1581
1581
< P >
1582
1582
[:xdigit:]
1583
- In addition to the ASCII hexadecimal digits, this also matches the "fullwidth"
1584
- versions of those characters, whose Unicode code points start at U+FF10. This
1585
- is a change that was made in PCRE release 10.43 for Perl compatibility.
1583
+ In addition to the ASCII hexadecimal digits, this also matches the "fullwidth"
1584
+ versions of those characters, whose Unicode code points start at U+FF10. The
1585
+ effect of PCRE2_UCP can be negated by setting the PCRE2_EXTRA_ASCII_DIGIT
1586
+ option, just like it does for [:digit]. This is a change that was made in
1587
+ PCRE release 10.43 for Perl compatibility.
1586
1588
</ P >
1587
1589
< P >
1588
1590
The other POSIX classes are unchanged by PCRE2_UCP, and match only characters
1589
- with code points less than 256. The effect of PCRE2_UCP on POSIX classes can be
1590
- negated by setting the PCRE2_EXTRA_ASCII_POSIX option, either when calling
1591
- < b > pcre2_compile()</ b > or internally within the pattern.
1591
+ with code points less than 256. The effect of PCRE2_UCP on all POSIX classes
1592
+ can be negated by setting the PCRE2_EXTRA_ASCII_POSIX option, either when
1593
+ calling < b > pcre2_compile()</ b > or internally within the pattern.
1592
1594
</ P >
1593
1595
< br > < a name ="SEC11 " href ="#TOC1 "> COMPATIBILITY FEATURE FOR WORD BOUNDARIES</ a > < br >
1594
1596
< P >
You can’t perform that action at this time.
0 commit comments