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

Open
#1,676 1 comment 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@AynSiddiqui is already working on this.

Since Nov 24, 2026.

Assessment

This issue has not been assessed yet.

Description

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

Dominant language
Assembly
Stars
423
Forks
188
Avg merge
1d 7h
Merged PRs (30d)
164

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/arrow-go

All issues in apache/arrow-go

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.