Uh oh!
There was an error while loading. Please reload this page.
bpo-47256: re module, limit the maximum capturing group to 1,073,741,823, increasing the depth of backtracking. - #32411
Conversation
ghost
commented
Apr 12, 2022
I would like to remove the variable |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
serhiy-storchaka
commented
Apr 15, 2022
Do it. |
These types are kept as Py_ssize_t: - PatternObject.groups - MatchObject.lastindex - MatchObject.groups - On 32 bit platform: 36 bytes, no change. (msvc2022) - On 64 bit platform: 72 bytes -> 64 bytes. (msvc2022/gcc9.4)
change the type of `SRE(match_context).jump` from Py_ssize_t to int - On 32 bit platform: 36 bytes, no change. (msvc2022) - On 64 bit platform: 64 bytes -> 56 bytes. (msvc2022/gcc9.4) And make the order of `DO_JUMPX` macro and `SRE(match_context)` struct consistent.
DATA_STACK_(PUSH|POP) macros use the size multiple time, now computed value is propagated.
ghost
commented
Apr 16, 2022
Improved as your comments locally. |
serhiy-storchaka
commented
Apr 16, 2022
I have no other comments. Please update this PR. |
ghost
commented
Apr 16, 2022
I mean reviewer... |
Uh oh!
There was an error while loading. Please reload this page.
Closes#91412.