]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-120378: Fix crash caused by integer overflow in `curses` (#124555)
authorPeter Bierma <zintensitydev@gmail.com>
Wed, 2 Oct 2024 14:31:23 +0000 (10:31 -0400)
committerGitHub <noreply@github.com>
Wed, 2 Oct 2024 14:31:23 +0000 (14:31 +0000)
commitc2ba931318280796a6dcc33d1a5c5c02ad4d035b
tree1c50974434339ba212d8bc648d7e25fae2610565
parent7bd9dbf8e148f14f9c9c6715a820bfda6adff957
gh-120378: Fix crash caused by integer overflow in `curses` (#124555)

This is actually an upstream problem in curses, and has been reported
to them already:
https://lists.gnu.org/archive/html/bug-ncurses/2024-09/msg00101.html

This is a nice workaround in the meantime to prevent the segfault.

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Lib/test/test_curses.py
Misc/NEWS.d/next/Library/2024-09-25-18-07-51.gh-issue-120378.NlBSz_.rst [new file with mode: 0644]
Modules/_cursesmodule.c
Modules/clinic/_cursesmodule.c.h