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

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


https://github.com/python/cpython/commit/0178a6b67ca3e782443f311e953509ca3eb4aacf
commit: 0178a6b67ca3e782443f311e953509ca3eb4aacf
branch: 3.8
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:20:35-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