Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Oct 3, 2017

when pass a string larger than 2 GiB.
(cherry picked from commit 27c623c)

https://bugs.python.org/issue31675

…d split() (pythonGH-3866)

when pass a string larger than 2 GiB.

Decrease memory requirements for Tcl's bigmem tests..
(cherry picked from commit 27c623c)
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While the PR seems good to me, I'm not sure that a NEWS entry is really needed. _tkinter.c doesn't have "#define PY_SSIZE_T_CLEAN" in Python 2.7, and so already rejected strings longer than INT_MAX in PyArg_ParseTuple(), no?

@serhiy-storchaka
Copy link
Member Author

PY_SSIZE_T_CLEAN affects the type of the size variable. But "et" doesn't return a size.

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@vstinner
Copy link
Member

vstinner commented Oct 3, 2017

PY_SSIZE_T_CLEAN affects the type of the size variable. But "et" doesn't return a size.

Oh, I see. Thank you for checking. Your PR now LGTM.

@serhiy-storchaka serhiy-storchaka merged commit 328b5d0 into python:2.7 Oct 4, 2017
@serhiy-storchaka serhiy-storchaka deleted the backport-27c623c-2.7 branch October 4, 2017 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants