[issue29825] PyFunction_New() not validate code object

Jelle Zijlstra report at bugs.python.org
Fri Mar 17 03:00:29 EDT 2017


Jelle Zijlstra added the comment:

I don't think this is a bug; it is known and expected that you can do all kinds of bad things by writing bytecode manually. (You can already make Python write to random memory by giving it LOAD_FAST or STORE_FAST opcodes with incorrect offsets.)

This doesn't seem to be clearly documented though; the documentation just says that bytecode can change between releases.

----------
nosy: +Jelle Zijlstra

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


More information about the Python-bugs-list mailing list