Ensure that HACL* states are not read concurrently
Aperta
@picnixz ci sta già lavorando.
Dal 15/8/2026.
extension-modules
type-bug
- Lingua principale
- Python
- Stelle
- 77.2k
- Fork
- 36k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
Bug report
Bug description:
Sometimes, it's possible to read an HACL* state concurrently:
- sha3 reads the live HACL state outside the object lock at six sites
- blake2's digest_size getter reads the live HACL state outside the lock
Instead, we can (1) add this static information just after construction (2) compute it inside the lock sections. The problem is that HACL* update() functions update the entire state so reading static information is unsafe.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
- gh-155838
- gh-155839
- gh-157038
- gh-157039
- gh-157041
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.