fix(deletion-vector): reject a bitmap count larger than the payload (#3992)

_deserialize_bitmap read an 8-byte count and used it directly as a loop
bound, so a small blob could declare a large number of bitmaps. Reading
past the payload surfaced as an IndexError from the native bitmap
decoder. Validate the count against the remaining bytes, since every
bitmap contributes at least a 4-byte key.
2 files changed
tree: fada6c17cc5b6c1a0e60e2d4cbb9ee7624b0d0e7
  1. .github/
  2. dev/
  3. mkdocs/
  4. notebooks/
  5. pyiceberg/
  6. tests/
  7. vendor/
  8. .asf.yaml
  9. .gitignore
  10. .markdown-link-check.json
  11. .markdownlint.yaml
  12. .pre-commit-config.yaml
  13. AGENTS.md
  14. LICENSE
  15. Makefile
  16. MANIFEST.in
  17. NOTICE
  18. pyproject.toml
  19. README.md
  20. SECURITY-THREAT-MODEL.md
  21. setup.py
  22. uv.lock
README.md

Iceberg Python

PyIceberg is a Python library for programmatic access to Iceberg table metadata as well as to table data in Iceberg format. It is a Python implementation of the Iceberg table spec.

The documentation is available at https://py.iceberg.apache.org/.

Get in Touch