[issue20631] python readline module crashing on NULL access

2014-02-14 Thread Todd Fiala
New submission from Todd Fiala: Hi all, In working on the LLVM/LLDB project, I've been hitting a bug in the embedded interpreter that causes a NULL dereference in the Python readline module. There is a call to the history_get() function with an assumption that it returns a non-NULL value.

[issue20631] python readline module crashing on NULL access

2014-02-14 Thread Todd Fiala
Changes by Todd Fiala : -- type: -> crash ___ Python tracker <http://bugs.python.org/issue20631> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue20631] python readline module crashing on NULL access

2014-02-18 Thread Todd Fiala
Todd Fiala added the comment: Cleaned up the proposed patch a bit. Moves HIST_ENTRY* into a tighter block and removes the second call to history_get() since the value is already stashed in the NULL-checked local. -- Added file: http://bugs.python.org/file34137