summaryrefslogtreecommitdiffstats
path: root/Lib/test/crashers/bogus_code_obj.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/crashers/bogus_code_obj.py')
-rw-r--r--Lib/test/crashers/bogus_code_obj.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/crashers/bogus_code_obj.py b/Lib/test/crashers/bogus_code_obj.py
new file mode 100644
index 0000000..5438d91
--- /dev/null
+++ b/Lib/test/crashers/bogus_code_obj.py
@@ -0,0 +1,9 @@
+"""
+Broken bytecode objects can easily crash the interpreter.
+"""
+
+import types
+
+co = types.CodeType(0, 0, 0, 0, '\x04\x71\x00\x00', (),
+ (), (), '', '', 1, '')
+exec co