[New-bugs-announce] [issue6243] getkey() can segfault in combination with curses.ungetch()
Trundle
report at bugs.python.org
Mon Jun 8 22:36:14 CEST 2009
New submission from Trundle <andy-python at hammerhartes.de>:
Snippet to reproduce:
import curses
scr = curses.initscr()
curses.ungetch(1025)
scr.getkey()
This is because `keyname()` in `PyCursesWindow_GetKey()` returns NULL
which is passed to `PyString_FromString()` then.
The attached patch fixes the segfault.
----------
components: Library (Lib)
files: python_curses_ungetch_getkey.patch
keywords: patch
messages: 89111
nosy: Trundle
severity: normal
status: open
title: getkey() can segfault in combination with curses.ungetch()
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file14234/python_curses_ungetch_getkey.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6243>
_______________________________________
More information about the New-bugs-announce
mailing list