python / python/cpython

Ensure that BLAKE-2 objects are fully initialized before being GC-tracked

Aperta
#155,830 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@picnixz ci sta già lavorando.

Dal 15/8/2026.

extension-modules type-bug
Lingua principale
Python
Stelle
77.2k
Fork
35.9k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

Bug report

Bug description:

The BLAKE-2 internal states are initialized after PyObject_GC_Track is called. If unlucky, we would call py_blake2_clear on uninitialized states since PyObject_GC_New is used (we want to first initialize the objects entirely before tracking them but some fields depend on the type so we can't use zeroing as is).

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs
  • gh-155831

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.