Skip to content

gh-155875: Fix new_prescr screen lifetime - #155914

Open
BHUVANSH855 wants to merge 2 commits into
python:mainfrom
BHUVANSH855:fix-155875-new-prescr-lifetime
Open

gh-155875: Fix new_prescr screen lifetime#155914
BHUVANSH855 wants to merge 2 commits into
python:mainfrom
BHUVANSH855:fix-155875-new-prescr-lifetime

Conversation

@BHUVANSH855

Copy link
Copy Markdown
Contributor

Summary

Fixes a use-after-free when curses.new_prescr() is followed by initscr() or newterm().

The pending pre-screen is now tracked by the curses module and its ownership is transferred when the screen is adopted, preventing the new_prescr() wrapper from deleting a live SCREEN.

Fixes issue gh-155875

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant