Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.14] gh-134209: use heap-allocated memory in_curses.window.{instr,getstr} (GH-134283)#134391

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
gpshead merged 1 commit intopython:3.14frommiss-islington:backport-aadda87-3.14
May 20, 2025

Conversation

miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commentedMay 20, 2025
edited by github-actionsbot
Loading

  • 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


(cherry picked from commitaadda87)

Co-authored-by: tigerding43339228+zydtiger@users.noreply.github.com
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Gregory P. Smithgreg@krypto.org
Co-authored-by: Bénédikt Tran10796600+picnixz@users.noreply.github.com


📚 Documentation preview 📚:https://cpython-previews--134391.org.readthedocs.build/

…getstr}` (pythonGH-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`---------(cherry picked from commitaadda87)Co-authored-by: tigerding <43339228+zydtiger@users.noreply.github.com>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>
@gpsheadgpshead merged commit04829d4 intopython:3.14May 20, 2025
46 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@miss-islington@gpshead@zydtiger

[8]ページ先頭

©2009-2025 Movatter.jp