alamb opened a new pull request, #12390: URL: https://github.com/apache/arrow-rs/pull/12390
# Which issue does this PR close? Relates to [the discussion on #12330](https://github.com/apache/arrow-rs/issues/12330#issuecomment-7062416792). The decoder fix is tracked in #12331. # Rationale for this change A reader can reject an inconsistent value count before allocating memory. Even when all metadata is valid, a small file can still require substantial resources to decode. Services that accept untrusted files need to know which protections they can expect from the reader. # What changes are included in this PR? Extend the security policy with an example of a reasonable validation check and guidance on enforcing resource limits in the calling application. DuckDB illustrates how far encoded and materialized sizes can differ in [42.parquet – A Zip Bomb for the Big Data Age](https://duckdb.org/2024/03/26/42-parquet-a-zip-bomb-for-the-big-data-age). # Are these changes tested? The change is limited to documentation. I checked spelling and verified the figures against the DuckDB post. # Are there any significant user-facing changes? Documentation only. # AI usage disclosure Codex drafted the policy text and PR description. -- 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]
