diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-12-25 15:20:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-25 15:20:35 (GMT) |
commit | 0178a6b67ca3e782443f311e953509ca3eb4aacf (patch) | |
tree | c79f72988fb84de40e3f70746f6e3b637234d652 | |
parent | d5aadb28545fd15cd3517b604a8c7a520abd09c6 (diff) | |
download | cpython-0178a6b67ca3e782443f311e953509ca3eb4aacf.zip cpython-0178a6b67ca3e782443f311e953509ca3eb4aacf.tar.gz cpython-0178a6b67ca3e782443f311e953509ca3eb4aacf.tar.bz2 |
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@gmail.com>
-rw-r--r-- | Lib/test/crashers/bogus_code_obj.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/crashers/bogus_code_obj.py b/Lib/test/crashers/bogus_code_obj.py index 198d229..e71b358 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) |