summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unicode.py
diff options
context:
space:
mode:
authorMa Lin <animalize@users.noreply.github.com>2022-04-18 13:50:40 (GMT)
committerGitHub <noreply@github.com>2022-04-18 13:50:40 (GMT)
commita29f858124bc698f6604716b73306c65b63b5054 (patch)
tree4ad90bf4967c3f0dd3e0981a65f31089a8920f0a /Lib/test/test_unicode.py
parent1c2fcebf3c5e2ab41d376bb481834445617c8f3c (diff)
downloadcpython-a29f858124bc698f6604716b73306c65b63b5054.zip
cpython-a29f858124bc698f6604716b73306c65b63b5054.tar.gz
cpython-a29f858124bc698f6604716b73306c65b63b5054.tar.bz2
bpo-47256: Increasing the depth of backtracking in RE (GH-32411)
Limit the maximum capturing group to 2**30-1 on 64-bit platforms (it was 2**31-1). No change on 32-bit platforms (2**28-1). It allows to reduce the size of SRE(match_context): - On 32 bit platform: 36 bytes, no change. (msvc2022) - On 64 bit platform: 72 bytes -> 56 bytes. (msvc2022/gcc9.4) which leads to increasing the depth of backtracking.
Diffstat (limited to 'Lib/test/test_unicode.py')
0 files changed, 0 insertions, 0 deletions