Skip to content

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

Draft
A0su wants to merge 2 commits intopython:mainfrom
A0su:Fix_null_deref_in_make_bottom
Draft

gh-146388: Add null check for sym_new(ctx) in make_bottom#146389
A0su wants to merge 2 commits intopython:mainfrom
A0su:Fix_null_deref_in_make_bottom

Conversation

@A0su
Copy link

@A0su A0su commented Mar 24, 2026

optimizer_symbols.c: make_bottom NULL deref when arena full

sym_new(ctx) at line 1535 can return NULL when the type arena is full. Result immediately dereferenced without check. Every other sym_new call site checks for NULL.

This is a sub-issue of #146102 with gist details

@bedevere-app
Copy link

bedevere-app bot commented Mar 24, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@bedevere-app
Copy link

bedevere-app bot commented Mar 24, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@A0su A0su marked this pull request as draft March 24, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant