mirror of
https://github.com/python/cpython.git
synced 2026-04-14 15:50:50 +00:00
gh-146388: Add null check for sym_new(ctx) in make_bottom (GH-146389)
This commit is contained in:
parent
a209dd2bdb
commit
c8ee196030
2 changed files with 4 additions and 0 deletions
|
|
@ -1684,6 +1684,9 @@ static JitOptSymbol *
|
|||
make_bottom(JitOptContext *ctx)
|
||||
{
|
||||
JitOptSymbol *sym = sym_new(ctx);
|
||||
if (sym == NULL) {
|
||||
return out_of_space(ctx);
|
||||
}
|
||||
sym->tag = JIT_SYM_BOTTOM_TAG;
|
||||
return sym;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue