Robert Snoeberger added the comment:

I created a patch to add a check for NULL globals or locals. The file 
execfile.patch is attached. A system error is set with the message "globals and 
locals cannot be NULL" if either is NULL.

An open question I have is how should I create tests for this patch? I verified 
that the crash doesn't occur when I run the attached execfile_invoke.c program.

----------
keywords: +patch
Added file: http://bugs.python.org/file35372/execfile.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21563>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to