aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/symtable.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2025-05-04 03:29:44 -0700
committerGitHub <noreply@github.com>2025-05-04 13:29:44 +0300
commit0af61fe2f41048d66b0a973bbff056690446d3df (patch)
treee8090981a10df6efc1d77ec0909b9f81508e1c8b /Python/symtable.c
parentac7d5ba96eb780b13877456b118ff1183bc6c4b3 (diff)
downloadcpython-0af61fe2f41048d66b0a973bbff056690446d3df.tar.gz
cpython-0af61fe2f41048d66b0a973bbff056690446d3df.zip
bpo-44172: Keep reference to original window in curses subwindow objects (GH-26226)
The X/Open curses specification[0] and ncurses documentation[1] both state that subwindows must be deleted before the main window. Deleting the windows in the wrong order causes a double-free with NetBSD's curses implementation. To fix this, keep track of the original window object in the subwindow object, and keep a reference to the original for the lifetime of the subwindow. [0] https://pubs.opengroup.org/onlinepubs/7908799/xcurses/delwin.html [1] https://invisible-island.net/ncurses/man/curs_window.3x.html Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/symtable.c')
0 files changed, 0 insertions, 0 deletions