lszskye opened a new pull request, #591:
URL: https://github.com/apache/paimon-cpp/pull/591
### Purpose
The ORC string deep-copy path copies decoded data before checking
the 32-bit offset limit. When cumulative string lengths exceed
INT32_MAX, the destination offset can become invalid and subsequent
copies can cause SIGSEGV before the existing bounds check runs.
Prepare and validate offsets before allocating or copying string
data, so oversized batches return an Invalid status.
### Tests
- Add a unit test with 2048 rows sharing a 1 MiB string. Verify that
conversion rejects the oversized batch without allocating through
the Arrow memory pool.
- Add an integration test that writes dictionary-encoded ORC data
and reads it with lazy decoding disabled, using the default memory
pool. Verify that a 2048-row batch returns the bounds error and
8-row batches read all values correctly with valid Arrow arrays.
### API and Format
No public API, storage format, or protocol changes.
### Documentation
No documentation changes are needed for this bug fix.
### Generative AI tooling
Generated-by: OpenAI Codex CLI 0.155.1
--
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]