Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#345 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
64/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
c, python
領域
backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C
スター
641
フォーク
117
平均マージ
8日 2時間
マージ済み PR(30日)
7

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

indygreg/python-zstandard のほかの issue

indygreg/python-zstandard の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。