Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

`estimated_compression_context_size()` raises SIGFPE with `enable_ldm=True

Aperta
#345 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
64/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c, python
Ambito
backend

Direzione di ricerca

Start by running the provided Python reproducer for estimated_compression_context_size() with enable_ldm=True, then trace that entry point through the Python C extension and its Zstandard parameter handling. Done means the call no longer terminates the process and instead returns a size estimate or raises a Python exception for these parameters.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

Calling estimated_compression_context_size() on compression parameters constructed with enable_ldm=True terminates Python with SIGFPE.

Versions

zstandard 0.25.0, CPython 3.12.3, Ubuntu 24.04.4 x86_64, glibc 2.39.

Reproducer
import zstandard as zstd

params = zstd.ZstdCompressionParameters.from_level(3, enable_ldm=True)
params.estimated_compression_context_size()

This one exited with SIGFPE (signal 8; shell status 136).

I found this while fuzzing Python C extension modules.
I would expect a size estimate or a Python exception rather than process termination.

Lingua principale
C
Stelle
641
Fork
117
Merge medio
1g 14h
PR unite (30g)
5

Preparare l'ambiente

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.

Altre issue di indygreg/python-zstandard

Tutte le issue di indygreg/python-zstandard

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.