[PEAK] checking arbitrary bytecode for potential crashes
Dima Tisnek
dimaqq at gmail.com
Tue Sep 30 04:57:03 EDT 2014
Hi all,
BytecodeAssembler mentions that "It should now be virtually impossible
to accidentally generate bytecode that can crash the interpreter. (If
you find a way, let me know!)"
How do I invoke this validation?
Here's a simplest example after ned and lvh:
code_obj = peak.util.assembler.code(0, 0, 1, 0, "KABOOM", (), (), (),
"gooo", "goo", 1, "l")
crasher = peak.util.assembler.function(cob, {})
crasher() # segv
More information about the PEAK
mailing list