You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If normalize_basic_block or ensure_exits_have_lineno fails, the function will attempt to free a.a_bytecode, which has not yet been initialized, possibly leading to a program crash.
The problematic code was added by commit 5977a79 to fix bpo-42246.
Activity
alexhenrie commentedon Mar 2, 2021
The assemble function in compile.c currently looks like this:
If normalize_basic_block or ensure_exits_have_lineno fails, the function will attempt to free a.a_bytecode, which has not yet been initialized, possibly leading to a program crash.
The problematic code was added by commit 5977a79 to fix bpo-42246.
Defect identified by scan-build <https://clang-analyzer.llvm.org/scan-build.html\>
markshannon commentedon Mar 2, 2021
New changeset 503627f by Alex Henrie in branch 'master':
bpo-43358: Fix bad free in assemble function (GH-24697)
503627f