wgtmac opened a new pull request, #51136: URL: https://github.com/apache/arrow/pull/51136
### Rationale for this change The BYTE_ARRAY decimal converter always clears 16 bytes through `uint64_t` stores. After Decimal32/64 support was added, Decimal32 output slots can be only 4-byte aligned, causing undefined behavior. ### What changes are included in this PR? Replace the fixed `uint64_t` stores with `std::memset(out_ptr, 0, type_length)`. ### Are these changes tested? Yes. The existing Decimal32/64/128/256 BYTE_ARRAY tests all pass. No new test is needed because `TestReadDecimals.Decimal32ByteArray` directly exercises this path. ### Are there any user-facing changes? No, this is a bug fix. AI usage: OpenAI Codex was used to investigate and draft this change. The patch was reviewed and tested locally. * GitHub Issue: #51135 -- 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]
