Skip to content

gh-115103: Fix unregistering of QSBR state#116480

Merged
colesbury merged 1 commit intopython:mainfrom
colesbury:gh-115103-unregister
Mar 8, 2024
Merged

gh-115103: Fix unregistering of QSBR state#116480
colesbury merged 1 commit intopython:mainfrom
colesbury:gh-115103-unregister

Conversation

@colesbury
Copy link
Contributor

@colesbury colesbury commented Mar 7, 2024

If a thread blocks while waiting on the shared->mutex lock, the array of QSBR states may be reallocated. In other words, the value oftstate->qsbr may be different before and after the PyMutex_Lock() call, and using the previous value across the lock acquisition is not safe.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants