Skip to content
New issue

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

UB/segfault with unicode slice #3531

Closed
gsnedders opened this issue Apr 20, 2020 · 0 comments · Fixed by #3532
Closed

UB/segfault with unicode slice #3531

gsnedders opened this issue Apr 20, 2020 · 0 comments · Fixed by #3532

Comments

@gsnedders
Copy link
Contributor

cdef extern from *:
    cdef Py_ssize_t PY_SSIZE_T_MIN
    cdef Py_ssize_t PY_SSIZE_T_MAX

u""[PY_SSIZE_T_MAX:PY_SSIZE_T_MIN]

this should suffice to repro; this leads to overflow of a Py_ssize_t and a segfault at higher optimization levels, PR forthcoming

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants