Skip to content

[2.7] bpo-31675: Fix memory leaks in Tkinter's methods splitlist() and split() (GH-3866)#3876

Merged
serhiy-storchaka merged 1 commit into
python:2.7from
serhiy-storchaka:backport-27c623c-2.7
Oct 4, 2017
Merged

[2.7] bpo-31675: Fix memory leaks in Tkinter's methods splitlist() and split() (GH-3866)#3876
serhiy-storchaka merged 1 commit into
python:2.7from
serhiy-storchaka:backport-27c623c-2.7

Conversation

@serhiy-storchaka

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

Copy link
Copy Markdown
Member

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)

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Member Author

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

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

@vstinner

vstinner commented Oct 3, 2017

Copy link
Copy Markdown
Member

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