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

Fix initialization of brotli parameters #2658

Merged
merged 1 commit into from
Sep 4, 2024
Merged

Conversation

npaun
Copy link
Member

@npaun npaun commented Sep 4, 2024

Brotli parameters were being read from the wrong argument.

@npaun npaun requested review from jasnell and anonrig September 4, 2024 21:51
@npaun npaun requested review from a team as code owners September 4, 2024 21:51
@@ -837,6 +836,8 @@ bool ZlibUtil::BrotliCompressionStream<CompressionContext>::initialize(jsg::Lock
return false;
}

auto results = params.template asArrayPtr<uint32_t>();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a test that actually fails without this change?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not yet; but I'll make sure that it's covered either from the NodeJS test suite or from a custom test in another PR.

@npaun npaun merged commit 16aec82 into main Sep 4, 2024
12 of 13 checks passed
@npaun npaun deleted the npaun/fix-brotli-param-init branch September 4, 2024 22:34
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.

2 participants