mirror of
https://github.com/python/cpython.git
synced 2026-05-06 12:49:07 -04:00
gh-146388: Add null check for sym_new(ctx) in make_bottom (GH-146389)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user