Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#345 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

@yousefissa đang làm issue này rồi.

Từ ngày 14/10/2026.

  • #359 của @yousefissa — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
64/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c, python
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C
Star
642
Fork
118
Merge trung bình
8 ngày 2 giờ
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của indygreg/python-zstandard

Tất cả issue của indygreg/python-zstandard

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.