Skip to content

_hmac: GIL may be released while attempting to set an exception #135561

Open
@picnixz

Description

@picnixz

Bug report

Bug description:

When calling hmac.update(), if the HACL* call fails, an exception is set. But this happens while we're releasing the GIL, which is not good.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Other, Linux

Linked PRs

Metadata

Metadata

Assignees

Labels

3.14bugs and security fixes3.15new features, bugs and security fixesextension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errortype-crashA hard crash of the interpreter, possibly with a core dump

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions