From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 25 Dec 2020 15:20:35 +0000 (-0800) Subject: bpo-42734: Fix crasher bogus_code_obj.py (GH-23939) X-Git-Tag: v3.8.8rc1~78 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0178a6b67ca3e782443f311e953509ca3eb4aacf;p=thirdparty%2FPython%2Fcpython.git 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 --- diff --git a/Lib/test/crashers/bogus_code_obj.py b/Lib/test/crashers/bogus_code_obj.py index 198d229491b1..e71b3582cf2d 100644 --- a/Lib/test/crashers/bogus_code_obj.py +++ b/Lib/test/crashers/bogus_code_obj.py @@ -14,6 +14,6 @@ the user build or load random bytecodes anyway. Otherwise, this is a 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)