Skip to content

Conversation

@VanshAgarwal24036
Copy link
Contributor

@VanshAgarwal24036 VanshAgarwal24036 commented Feb 9, 2026

Fix a potential use-after-free when storing or deleting instance attributes if a re-entrant __hash__ mutates the instance __dict__ during attribute handling.

Temporarily INCREF the managed dict in the Py_GIL_DISABLED path to ensure it remains alive across the call to store_instance_attr_dict().

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