[issue29825] PyFunction_New() not validate code object

Serhiy Storchaka report at bugs.python.org
Fri Mar 17 05:16:32 EDT 2017


Serhiy Storchaka added the comment:

This is a deliberate decision. In general, it is very difficult to verify the bytecode for correctness (whatever correctness criterion has been chosen). Any check takes time and this will slow down the execution in the normal case. This is not considered security issue since passing untrusted bytecode is not safe in any case.

----------
nosy: +serhiy.storchaka
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29825>
_______________________________________


More information about the Python-bugs-list mailing list