]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-120378: Fix crash caused by integer overflow in `curses` (GH-124555) (...
authorPeter Bierma <zintensitydev@gmail.com>
Wed, 2 Oct 2024 21:40:49 +0000 (17:40 -0400)
committerGitHub <noreply@github.com>
Wed, 2 Oct 2024 21:40:49 +0000 (21:40 +0000)
commit8dce4918ab3ad6c6faa25f9e3fbbfe022b4882b5
tree44864fd5c00c2802672e5888c2a1fa064652c06b
parent829cdf06d4f40b0774a5a13f9e6023f3e29bf44d
[3.12] gh-120378: Fix crash caused by integer overflow in `curses` (GH-124555) (#124911)

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: 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