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

miss-islington webhook-mailer at python.org
Fri Dec 25 10:23:21 EST 2020


https://github.com/python/cpython/commit/51f502914656a1f8e8ffdf6e1b06f670d8fea8ed
commit: 51f502914656a1f8e8ffdf6e1b06f670d8fea8ed
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2020-12-25T07:22:56-08: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).
(cherry picked from commit 954a7427ba9c2d02faed32c02090caeca873aeca)

Co-authored-by: Serhiy Storchaka <storchaka at gmail.com>

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