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

gh-134209: use heap-allocated memory in_curses.window.{instr,getstr}#134283

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 34 commits intopython:mainfromzydtiger:fix-issue-134209
May 20, 2025
Merged
Changes from1 commit
Commits
Show all changes
34 commits
Select commitHold shift + click to select a range
46a6f47
made curses buffer heap allocated instead of stack
zydtigerMay 19, 2025
7eeb8f6
change docs to explicitly mention the max buffer size
zydtigerMay 19, 2025
d5aa3db
remove unintentional changes
zydtigerMay 19, 2025
020d798
📜🤖 Added by blurb_it.
blurb-it[bot]May 19, 2025
823fa38
reword news to satify linter
zydtigerMay 19, 2025
571091d
Merge branch 'main' into fix-issue-134209
zydtigerMay 19, 2025
1e7edf4
Merge branch 'main' into fix-issue-134209
zydtigerMay 19, 2025
0cb5fe0
Reword the ReST news entry.
gpsheadMay 20, 2025
63a3ed2
use rtn value from winnstr instead of strlen
zydtigerMay 20, 2025
58d6cde
changing GetStr() function to behave similarly too
zydtigerMay 20, 2025
82c9b1c
updated curses doc for getstr function
zydtigerMay 20, 2025
04a9b14
Merge branch 'main' into fix-issue-134209
zydtigerMay 20, 2025
cbce07b
Update Doc/library/curses.rst
zydtigerMay 20, 2025
dfd210d
Update Doc/library/curses.rst
zydtigerMay 20, 2025
ad832bd
Update Misc/NEWS.d/next/Library/2025-05-19-20-59-06.gh-issue-134209.a…
zydtigerMay 20, 2025
f7a51f9
Update Modules/_cursesmodule.c
zydtigerMay 20, 2025
e5597a2
Update Modules/_cursesmodule.c
zydtigerMay 20, 2025
5dd4304
Update Modules/_cursesmodule.c
zydtigerMay 20, 2025
d868088
Update instr with proper return error handling
zydtigerMay 20, 2025
1a519cb
Update Modules/_cursesmodule.c
zydtigerMay 20, 2025
87bb8cb
Merge branch 'main' into fix-issue-134209
zydtigerMay 20, 2025
083f855
change to strlen and better memory safety
zydtigerMay 20, 2025
20046cb
Update Doc/library/curses.rst
zydtigerMay 20, 2025
fd5c3f4
Update Doc/library/curses.rst
zydtigerMay 20, 2025
c061f89
change from const int to Py_ssize_t
zydtigerMay 20, 2025
d11b04f
Merge branch 'main' into fix-issue-134209
zydtigerMay 20, 2025
c3323a3
fix indent
zydtigerMay 20, 2025
12d4a5f
Update Doc/library/curses.rst
zydtigerMay 20, 2025
769ba15
add mem allocation guard
zydtigerMay 20, 2025
59b49b4
remove trailing spaces in line
zydtigerMay 20, 2025
5bfa810
Merge branch 'main' into fix-issue-134209
zydtigerMay 20, 2025
6510d09
fix indent
zydtigerMay 20, 2025
6eccdc9
update versionchanged to mention it was an increase.
gpsheadMay 20, 2025
769bb87
explicitly use versionchanged 3.14 as that is its own branch now.
gpsheadMay 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Update Misc/NEWS.d/next/Library/2025-05-19-20-59-06.gh-issue-134209.a…
…nhTcF.rstCo-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
  • Loading branch information
@zydtiger@picnixz
zydtiger andpicnixz authoredMay 20, 2025
commitad832bd61d7301f5dc2c78029d3ec4c7c9401163
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
The :meth:`curses.window.instr` and :meth:`curses.window.getstr` allocate its internal buffer on the heap instead of the stack. Increased its max buffer size to 2047 from of 1023, documenting the limit.
:mod:`curses`: The :meth:`curses.window.instr` and :meth:`curses.window.getstr`
methods now allocate their internal buffer on the heap instead of the stack;
in addition, the max buffer size is increased from 1023 to 2047.
Loading

[8]ページ先頭

©2009-2025 Movatter.jp