Skip to content

Fix filter callback buffer size for LZ4 read and BLOSC2 compress#246

Open
ajelenak wants to merge 1 commit intomasterfrom
fix-filter-buf-size
Open

Fix filter callback buffer size for LZ4 read and BLOSC2 compress#246
ajelenak wants to merge 1 commit intomasterfrom
fix-filter-buf-size

Conversation

@ajelenak
Copy link
Copy Markdown
Contributor

@ajelenak ajelenak commented May 1, 2026

HDF5 PR HDFGroup/hdf5#6184 added a stricter check that filters report *buf_size >= return value after running. The LZ4 plugin decompression path failed to update *buf_size after reallocating, and the BLOSC2 plugin compression path left it at the precomputed uncompressed-chunk size, which can be smaller than the compressed output for small or incompressible chunks.

HDF5 PR #6184 added a stricter check that filters report *buf_size >= return
value after running. The LZ4 decompression path failed to update *buf_size
after reallocating, and the BLOSC2 compression path left it at the precomputed
uncompressed-chunk size, which can be smaller than the compressed output for
small or incompressible chunks.
@brtnfld
Copy link
Copy Markdown
Contributor

brtnfld commented May 1, 2026

Do you plan to open follow-up issues/PRs for BLOSC, BZIP2, and LZF on their end? It does not do much good to fix it here. Bzip2 and LZF also have an issue.

@ajelenak
Copy link
Copy Markdown
Contributor Author

ajelenak commented May 1, 2026

@brtnfld My recommendation is to proceed with the current set up for now, and also start evaluating how to transition to third-party plugin repositories that appear well maintained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants