Repository navigation
fix(compression): brotli-decompressor 6.4.2 for dcb's check; fix(quic): handshake confirmation, and the close after a refused ClientHello - #357
Merged
Conversation
…): handshake confirmation, and the close after a refused ClientHello compression: brotli 9.1.5 and brotli-decompressor 6.4.2 in both lockfiles. Every dcb stream is decoded before it is sent, and decoders before 6.4.2 refused a dictionary copy that runs on into the stream's own window (dropbox/rust-brotli-decompressor#104), so a valid stream could be turned away and the response sent with a standard coding instead. New test: decode_dcb_reads_a_dictionary_copy_that_runs_into_the_window, a stream from the brotli crate's encoder at quality 2 against a 64 KiB dictionary, which decoders before 6.4.2 refuse. The comments that put the fault in the brotli crate's encoder are corrected: its streams were valid. mbrotli stays the encoder, for output identical to the reference encoder's. quic (vendor/noq): a handshake is confirmed once both the Initial and the Handshake keys are gone. A connection that closed in the Initial space never had Handshake keys, so it no longer counts as confirmed, and takes no probing or migrating packets (n0-computer/noq#920). And a server that refused a ClientHello before validating the path answers an Initial the client sends again on that path with another CONNECTION_CLOSE, while the Initial keys exist and within the anti-amplification limit: the client sends it again because the first close did not arrive (n0-computer/noq#892). Tests: closed_in_initial_space_is_not_handshake_confirmed and handshake_confirmed_requires_established_without_handshake_keys.
server_close_only_initial_is_not_padded: a server that closes while its first flight is still queued sends CONNECTION_CLOSE alone in the Initial space, under 1200 bytes, so a close sent again for a retransmitted ClientHello stays within the anti-amplification limit.
…y message ClusterFuzzLite found a PUBLISH whose FILL_PARAMETERS carry a Range Filter of Length 0: no filter outside a REQUEST_UPDATE, so the relay does not encode it again, and the check's round trip differed. The check listed the messages whose parameters may hold such a filter by hand and left out PUBLISH (FILL_PARAMETERS may appear in a PUBLISH); it now asks of every message that carries parameters. The input is a moq_control seed, and control_check_takes_a_publish_with_an_empty_fill_filter runs it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
compression
brotli 9.1.5 and brotli-decompressor 6.4.2 in both lockfiles. Every
dcbstream is decoded before it is sent, and decoders before 6.4.2 refused a dictionary copy that runs on into the stream's own window (dropbox/rust-brotli-decompressor#104), so a valid stream could be turned away and the response sent with a standard coding instead.decode_dcb_reads_a_dictionary_copy_that_runs_into_the_window: a stream from the brotli crate's encoder at quality 2 against a 64 KiB dictionary. It passes with 6.4.2 and fails with 6.4.1 ("invalid dcb stream").quic (vendor/noq)
closed_in_initial_space_is_not_handshake_confirmed,handshake_confirmed_requires_established_without_handshake_keys, andserver_close_only_initial_is_not_padded(a server's close-only Initial goes out under 1200 bytes, so a close sent again stays within the anti-amplification limit).moq (the control fuzz check)
ClusterFuzzLite found a PUBLISH whose FILL_PARAMETERS carry a Range Filter of Length 0. Outside a REQUEST_UPDATE that is no filter, so the relay does not encode it again, and the check's round trip differed. The check listed the messages whose parameters may hold such a filter by hand and left out PUBLISH, where FILL_PARAMETERS may appear; it now asks of every message that carries parameters. The input is a
moq_controlseed, andcontrol_check_takes_a_publish_with_an_empty_fill_filterruns it (it fails with the old check).Checked
cargo fmt -p pqcrypta-proxy -- --check;cargo clippy --all-targets -- -D warnings;cargo test --lib compression(18 pass) andmoq::(75 pass);cargo test --manifest-path vendor/noq/Cargo.toml -p noq-proto -p noq --lib(494 + 39 pass); clippy on vendor/noq's noq-proto.BEGIN_COMMIT_OVERRIDE
fix(compression): check dcb streams with brotli-decompressor 6.4.2, which reads a dictionary copy that runs on into the window
fix(quic): a connection closed in the Initial space is not handshake-confirmed, and answers an Initial sent again before validation with another CONNECTION_CLOSE
END_COMMIT_OVERRIDE
🤖 Generated with Claude Code