ipc: stream reader accepts an invalid flatbuffer schema and decimal precision 0

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

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

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

Từ ngày 24/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Describe the bug, including details regarding any error messages, version, and platform.

Two inputs in the arrow-testing arrow-ipc-stream corpus are read by the Go stream reader without error, while Arrow C++ rejects both at the schema message (checked with pyarrow 26.0.1):

Input Go (main, 7bb62b71) Arrow C++
clusterfuzz-testcase-minimized-arrow-ipc-stream-fuzz-4757582821064704 schema dictionary<values=month_day_nano_interval, indices=uint32>, 0 batches, no error Invalid flatbuffers message.
crash-5e88bae6ac5250714e8c8bc73b9d67b949fadbb4 schema with baz: decimal(0, 0), 0 batches, no error Decimal precision out of range [1, 38]: 0

The decimal case looks like a missing range check where arrow/ipc/metadata.go builds the decimal type from the flatbuffer. For the first, C++ rejects it when verifying the flatbuffer; the Go stream reader parses the message without structural verification ((*messageReader).Message, arrow/ipc/message.go:324).

TestStreamFuzzRegression (added in #1650) accepts either outcome for these two inputs, so adding validation will not break it.

Follow-up to #1650 / #77.

Component(s)

Other

Ngôn ngữ chính
Assembly
Star
423
Fork
188
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
164

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 apache/arrow-go

Tất cả issue của apache/arrow-go

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.