aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Modules/_sre/sre.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-09-26 10:56:33 +0300
committerGitHub <noreply@github.com>2023-09-26 10:56:33 +0300
commit8ac2085b80eca4d9b2a1093d0a7da020fd12e11a (patch)
tree8b8d71d95b130ed511f4d8d53a13a6da1f2dd1cc /Modules/_sre/sre.h
parent7c61a361fc2e93375e22849fffbc20b60e94dbde (diff)
downloadcpython-8ac2085b80eca4d9b2a1093d0a7da020fd12e11a.tar.gz
cpython-8ac2085b80eca4d9b2a1093d0a7da020fd12e11a.zip
gh-109631: Allow interruption of short repeated regex matches (GH-109867)
Counting for signal checking now continues in new match from the point where it ended in the previous match instead of starting from 0.
Diffstat (limited to 'Modules/_sre/sre.h')
-rw-r--r--Modules/_sre/sre.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_sre/sre.h b/Modules/_sre/sre.h
index f60078d6bb9..83d89d57b11 100644
--- a/Modules/_sre/sre.h
+++ b/Modules/_sre/sre.h
@@ -95,6 +95,7 @@ typedef struct {
size_t data_stack_base;
/* current repeat context */
SRE_REPEAT *repeat;
+ unsigned int sigcount;
} SRE_STATE;
typedef struct {