[Python-checkins] bpo-42734: Fix crasher bogus_code_obj.py (GH-23939)

serhiy-storchaka webhook-mailer at python.org
Fri Dec 25 10:03:47 EST 2020


https://github.com/python/cpython/commit/954a7427ba9c2d02faed32c02090caeca873aeca
commit: 954a7427ba9c2d02faed32c02090caeca873aeca
branch: master
author: Serhiy Storchaka <storchaka at gmail.com>
committer: serhiy-storchaka <storchaka at gmail.com>
date: 2020-12-25T17:03:37+02:00
summary:

bpo-42734: Fix crasher bogus_code_obj.py (GH-23939)

It did not work because the signature of code object constructor
was changed. Also, it used old format of bytecode (pre-wordcode).

files:
M Lib/test/crashers/bogus_code_obj.py

diff --git a/Lib/test/crashers/bogus_code_obj.py b/Lib/test/crashers/bogus_code_obj.py
index 198d229491b14..e71b3582cf2d7 100644
--- a/Lib/test/crashers/bogus_code_obj.py
+++ b/Lib/test/crashers/bogus_code_obj.py
@@ -14,6 +14,6 @@
 
 import types
 
-co = types.CodeType(0, 0, 0, 0, 0, b'\x04\x71\x00\x00',
+co = types.CodeType(0, 0, 0, 0, 0, 0, b'\x04\x00\x71\x00',
                     (), (), (), '', '', 1, b'')
 exec(co)



More information about the Python-checkins mailing list