Skip to content

Return correct buffer size after compression in blosc2 and lz4#247

Merged
ajelenak merged 7 commits intoHDFGroup:masterfrom
fortnern:master
May 6, 2026
Merged

Return correct buffer size after compression in blosc2 and lz4#247
ajelenak merged 7 commits intoHDFGroup:masterfrom
fortnern:master

Conversation

@fortnern
Copy link
Copy Markdown
Member

@fortnern fortnern commented May 1, 2026

Filters need to return the correct buffer size to avoid memory errors. This is now enforced in HDF5 develop, though not doing so could be a problem for any version of HDF5. I haven't tested this yet since, hopefully there are automated checks.

@fortnern fortnern changed the title Return correct buffer size after compression Return correct buffer size after compression in blosc2 May 1, 2026
@ajelenak
Copy link
Copy Markdown
Contributor

ajelenak commented May 1, 2026

Have you seen my PR #246? I am ok if you want to take over in this one, but the LZ4 plugin also needs a fix.

@fortnern
Copy link
Copy Markdown
Member Author

fortnern commented May 1, 2026

Have you seen my PR #246? I am ok if you want to take over in this one, but the LZ4 plugin also needs a fix.

Sorry I didn't see that. I think this fix is better. I was only looking at blosc2 but I'll integrate the lz4 fix from 246

@fortnern fortnern changed the title Return correct buffer size after compression in blosc2 Return correct buffer size after compression in blosc2 and lz4 May 1, 2026
@ajelenak ajelenak merged commit 5685357 into HDFGroup:master May 6, 2026
26 of 35 checks passed
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.

4 participants