ipc: stream reader accepts an invalid flatbuffer schema and decimal precision 0
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
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/arrow-go
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
apache/arrow-go#1591 · 2 comments ·
Maintainers usually reply within 1 day
-
arrow/compute: safe float to integer cast skips the truncation check in sliced arrays with nullsPossibly taken @mansur-akhmadi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 1/100
Maintainers usually reply within 1 day
-
Type: bug
Difficulty 3/5 1-2 days Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
parquet/file: a panic recovered in WriteBatch is not kept, so Close writes a footer for rows with no valuesPossibly taken @EdwardShen125 claimed this 4 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Maintainers usually reply within 1 day