Skip to content

internal: preserve Mutex for PyErr normalization - #6391

Merged
davidhewitt merged 1 commit into
PyO3:mainfrom
davidhewitt:err-cell
Sep 6, 2026
Merged

internal: preserve Mutex for PyErr normalization#6391
davidhewitt merged 1 commit into
PyO3:mainfrom
davidhewitt:err-cell

Conversation

@davidhewitt

Copy link
Copy Markdown
Member

Reverts the switch from Mutex to Cell performed in #6058.

PyErr is Sync, so use of Cell is not sound.

Credit to Codex security scanning for the discovery.

@davidhewitt
davidhewitt added this pull request to the merge queue Sep 6, 2026
Merged via the queue into PyO3:main with commit cc9dcf3 Sep 6, 2026
51 of 53 checks passed
@davidhewitt
davidhewitt deleted the err-cell branch September 6, 2026 18:19
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.

2 participants