New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ncurses: *** buffer overflow detected ***: terminated with -D_FORTIFY_SOURCE=3 #91344
Comments
Note -D_FORTIFY_SOURCE=3 will come newly with GCC12. So I noticed the following error: demo.py: import curses
curses.initscr()
curses.unget_wch('a') Error message: Backtrace: So as seen __wcrtomb_chk is called with buflen == 1 and the function aborts if: size_t return __wcrtomb (s, wchar, ps); Where MB_CUR_MAX == 6. So the question is if the issue is in libcurses library (that is compiler with -D_FORTIFY_SOURCE=3), or in Modules/_cursesmodule.c? |
So the issue is ncurses, closing here. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: