diff options
author | tigerding <43339228+zydtiger@users.noreply.github.com> | 2025-05-20 16:36:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-20 20:36:04 +0000 |
commit | aadda87b3d3d99cb9e8c8791bb9715a3f0209195 (patch) | |
tree | ff7569cf9303d5d7c4694ae448b2b7bb7683a149 /Lib/asyncio/selector_events.py | |
parent | a3a3cf6d157948ed64ae837d6310b933a39a2493 (diff) | |
download | cpython-aadda87b3d3d99cb9e8c8791bb9715a3f0209195.tar.gz cpython-aadda87b3d3d99cb9e8c8791bb9715a3f0209195.zip |
gh-134209: use heap-allocated memory in `_curses.window.{instr,getstr}` (GH-134283)
* made curses buffer heap allocated instead of stack
* change docs to explicitly mention the max buffer size
* changing GetStr() function to behave similarly too
* Update Doc/library/curses.rst
* Update instr with proper return error handling
* Update Modules/_cursesmodule.c
* change to strlen and better memory safety
* change from const int to Py_ssize_t
* add mem allocation guard
* update versionchanged to mention it was an increase.
* explicitly use versionchanged 3.14 as that is its own branch now.
TESTED: `python -m test -u curses test_curses`
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Diffstat (limited to 'Lib/asyncio/selector_events.py')
0 files changed, 0 insertions, 0 deletions