Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditions in the following lines are always false, so code will never trigger FAIL: https://github.com/python/cpython/blob/main/Modules/_sre/sre.c#L1967 https://github.com/python/cpython/blob/main/Modules/_sre/sre.c#L1987
The code it self is like:
if (max > SRE_MAXREPEAT) FAIL;
where 'max' is SRE_CODE which is 4 byte unsigned int (Py_UCS4), and SRE_MAXREPEAT is the max value of SRE_CODE (and Py_UCS4).
Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
CPython main branch
Linux
The text was updated successfully, but these errors were encountered:
It is not always false on 32-bit platforms.
Sorry, something went wrong.
Can you please point platform, where we can test this next time?
Any 32-bit platform. SRE_MAXREPEAT is PY_SSIZE_T_MAX (= $2^{31}-1$) there.
SRE_MAXREPEAT
PY_SSIZE_T_MAX
Thanks, got it, it's not UINT_MAX, it's INT_MAX.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
Conditions in the following lines are always false, so code will never trigger FAIL:
https://github.com/python/cpython/blob/main/Modules/_sre/sre.c#L1967
https://github.com/python/cpython/blob/main/Modules/_sre/sre.c#L1987
The code it self is like:
where
'max' is SRE_CODE which is 4 byte unsigned int (Py_UCS4), and SRE_MAXREPEAT is the max value of SRE_CODE (and Py_UCS4).
Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: