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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
