Closed unak closed 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.
stdscr
initscr
curses_finalize
isendwin
endwin
It seems that PDCurses doesn't guarantee that
stdscr
is NULL before callinginitscr
. Therefore, the check incurses_finalize
is meaningless, and in such situation callingisendwin
andendwin
is danger -- to be more specific, it may causes a SEGV.