You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "fallintoplace (via GitHub)" <gi...@apache.org> on 2026/07/25 20:21:02 UTC
[PR] fix(parquet/variant): reject truncated scalar values [arrow-go]
fallintoplace opened a new pull request, #1017:
URL: https://github.com/apache/arrow-go/pull/1017
### Rationale for this change\n\nNewWithMetadata only checks that a variant value is non-empty. Truncated or unknown scalar encodings can therefore be accepted and later panic or read invalid data when their type or value is accessed.\n\n### What changes are included in this PR?\n\n* Validate the encoded width of fixed-size primitive values and short strings.\n* Validate binary and string length prefixes and their payload sizes.\n* Reject unknown primitive type codes while keeping compound values lazily decoded.\n\n### Are these changes tested?\n\nYes. The tests cover unknown primitive types, truncated fixed-width values, truncated binary prefixes and payloads, and truncated short strings. The parquet/variant and parquet/pqarrow packages pass, including the assertion build for parquet/variant.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(parquet/variant): reject truncated scalar values [arrow-go]
Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade merged PR #1017:
URL: https://github.com/apache/arrow-go/pull/1017
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org