]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-120378: Fix crash caused by integer overflow in `curses` (GH-124555) (...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 7 Oct 2024 21:46:57 +0000 (23:46 +0200)
committerGitHub <noreply@github.com>
Mon, 7 Oct 2024 21:46:57 +0000 (23:46 +0200)
commit2d3087b3cf01f26679c3cc53f39630955a3a56be
tree503492178787a7e73f3e47189c40ebda4010f2a6
parentf5f1d45f1704a31c85d92b88dfe36c05946baf8a
[3.13] gh-120378: Fix crash caused by integer overflow in `curses` (GH-124555) (#124905)

gh-120378: Fix crash caused by integer overflow in `curses` (GH-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.

(cherry picked from commit c2ba931318280796a6dcc33d1a5c5c02ad4d035b)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
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