gh-146388: Add null check for sym_new(ctx) in make_bottom (GH-146389)

This commit is contained in:
Brandon 2026-03-27 09:50:29 -05:00 committed by GitHub
parent a209dd2bdb
commit c8ee196030
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -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;
}