cpython/Modules/_sre
Ma Lin a29f858124
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.
2022-04-18 16:50:40 +03:00
..
clinic
sre.c bpo-47211: Remove function re.template() and flag re.TEMPLATE (GH-32300) 2022-04-06 19:53:50 +03:00
sre.h bpo-47256: Increasing the depth of backtracking in RE (GH-32411) 2022-04-18 16:50:40 +03:00
sre_constants.h bpo-47152: Automatically regenerate sre_constants.h (GH-91439) 2022-04-12 18:34:06 +03:00
sre_lib.h bpo-47256: Increasing the depth of backtracking in RE (GH-32411) 2022-04-18 16:50:40 +03:00
sre_targets.h gh-91404: Use computed gotos and reduce indirection in re (#91495) 2022-04-15 09:26:44 -07:00