[issue28549] curses: calling addch() with an 1-length str segfaults with ncurses6 compiled with --enable-ext-colors

2016-10-28 Thread Yutao Yuan

New submission from Yutao Yuan:

When addch() is called with an 1-length str, it is converted into a cchar_t. 
Ncurses6 adds a new field ext_color to cchar_t if it is enabled at compile 
time, and it is not initialized here, which causes various problems like 
segfaults or wrong display of characters.

--
components: Extension Modules
messages: 279620
nosy: yyt16384
priority: normal
severity: normal
status: open
title: curses: calling addch() with an 1-length str segfaults with ncurses6 
compiled with --enable-ext-colors
type: crash
versions: Python 3.4, Python 3.5

___
Python tracker 
<http://bugs.python.org/issue28549>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28549] curses: calling addch() with an 1-length str segfaults with ncurses6 compiled with --enable-ext-colors

2016-10-28 Thread Yutao Yuan

Yutao Yuan added the comment:

It fails to compile for me. setcchar should take a cchar_t* and a const 
wchar_t* instead.

--

___
Python tracker 
<http://bugs.python.org/issue28549>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28549] curses: calling addch() with an 1-length str segfaults with ncurses6 compiled with --enable-ext-colors

2016-10-29 Thread Yutao Yuan

Yutao Yuan added the comment:

Yes, it works for me now.

--

___
Python tracker 
<http://bugs.python.org/issue28549>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com