Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call native BrotliEncoderMaxCompressedSize method for BrotliEncoder.GetMaxCompressedLength #108043

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

buyaa-n
Copy link
Member

@buyaa-n buyaa-n commented Sep 19, 2024

BrotliEncoder.GetMaxCompressedLength returns invalid value for some input because managed implementation differs from native Brotli native implementation that updated many years ago

As discussed in the issue we should use the native implementation since it's the source of truth, and this size needs to remain in sync with what the encoder actually does.

Fixes #35142

Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-io-compression
See info in area-owners.md if you want to be subscribed.

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

Successfully merging this pull request may close these issues.

BrotliEncoder.GetMaxCompressedLength returns invalid value
1 participant