ruby / curses

Ruby binding for curses, ncurses, and PDCurses. Formerly part of the ruby standard library.
Other
297 stars 34 forks source link

Should call `curses_finalize` only if curses is initialized #31

Closed unak closed 7 years ago

unak commented 7 years ago

It seems that PDCurses doesn't guarantee that stdscr is NULL before calling initscr. Therefore, the check in curses_finalize is meaningless, and in such situation calling isendwin and endwin is danger -- to be more specific, it may causes a SEGV.