Skip to content

Conversation

@dbtsai
Copy link
Member

@dbtsai dbtsai commented Dec 2, 2025

What changes were proposed in this pull request?

In recent LZ4 versions, safeDecompressor has become highly optimized and can be as fast, or even sometimes faster, than fasterDecompressor. So it does make sense to switch to safeDecompressor.

Why are the changes needed?

It is recommended to switch to .safeDecompressor(), which is not vulnerable and provides better performance per https://sites.google.com/sonatype.com/vulnerabilities/cve-2025-12183

Does this PR introduce any user-facing change?

No

How was this patch tested?

Unit tests

Was this patch authored or co-authored using generative AI tooling?

No

@github-actions github-actions bot added the CORE label Dec 2, 2025
@dbtsai dbtsai changed the title [SPARK-54571] [Core] Use LZ4 safeDecompressor [SPARK-54571][CORE] Use LZ4 safeDecompressor Dec 2, 2025
@dbtsai
Copy link
Member Author

dbtsai commented Dec 3, 2025

It's more involving than I thought as LZ4BlockInputStream doesn't take safeDecompressor. I will take a deeper look tomorrow.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants