This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Trundle
Recipients Trundle
Date 2009-06-08.20:36:12
SpamBayes Score 8.662442e-06
Marked as misclassified No
Message-id <1244493374.77.0.425204214179.issue6243@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-06-08 20:36:14Trundlesetrecipients: + Trundle
2009-06-08 20:36:14Trundlesetmessageid: <1244493374.77.0.425204214179.issue6243@psf.upfronthosting.co.za>
2009-06-08 20:36:12Trundlelinkissue6243 messages
2009-06-08 20:36:12Trundlecreate