Mola-maker opened a new pull request, #12481: URL: https://github.com/apache/arrow-rs/pull/12481
- Closes #12471 # Rationale for this change A dictionary page's `num_values` sized allocations before decoding. A 120-byte file claiming i32::MAX values requested 16 GiB. The reader aborted instead of returning an error. # What changes are included in this PR? The declared count is validated against the decompressed bytes first. The check uses the smallest plain width for the physical type. It runs before any allocation sized from the count. FLBA pages keep their existing exact validation. # Are these changes tested? Yes. One end-to-end reader test uses the file from the issue. Unit tests cover each decoder. Two existing null tests declared 4 values for an empty dictionary, so they now declare 0. **AI Usage Statement:** Harness: Muse Model: Muse Spark Effort: default Role: Muse drafted the investigation, fix, and tests under my direction; I reviewed the diff and ran the tests. -- 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]
