Skip to content

test(h1): match the forged Content-Length trailer on its field line - #1767

Merged
FlorentinDUBOIS merged 1 commit into
mainfrom
test/h1-trailer-forbidden-anchor
Oct 1, 2026
Merged

FlorentinDUBOIS merged 1 commit into
mainfrom
test/h1-trailer-forbidden-anchor

Conversation

@FlorentinDUBOIS

Copy link
Copy Markdown
Collaborator

Follow-up to #1707.

a_chunked_request_trailer_section_loses_its_forbidden_fields rejected any serialized request containing the bare substring 6666. The random traceparent ids synthesised under the opentelemetry feature, and the random request ids, can carry it, so the test failed about once in 1,500 runs (seen in the fips CI cell).

The assertion now rejects the case-insensitive content-length: 6666 field line, alongside the existing 6.6.6.6 check. Test only; CHANGELOG updated.

Test

  • 5000 runs with opentelemetry enabled: 0 failures (unfixed test: 3–4 failures per 5000, each with 6666 in the trace or span id).
  • With the filter changed to forward the Content-Length trailer, the anchored assertion fails.
  • cargo +nightly fmt --check, cargo +1.93.1 clippy --all-features --all-targets --locked -- -D warnings, cargo doc --all-features --no-deps with -D warnings, cargo test -p sozu-lib --all-features --lib, cargo +nightly fuzz build, and the four check_doc_citations.py modes pass.

Follow-up to #1707.

`a_chunked_request_trailer_section_loses_its_forbidden_fields` rejected any
serialized request containing the bare substring `6666`. The random
`traceparent` ids synthesised under the `opentelemetry` feature, and the
random request ids, can carry it, so the test failed about once in 1,500
runs.

The assertion now rejects the case-insensitive `content-length: 6666` field
line, alongside the existing `6.6.6.6` check. Test only.

Signed-off-by: Florentin Dubois <[email protected]>
@FlorentinDUBOIS
FlorentinDUBOIS merged commit b5ac227 into main Oct 1, 2026
28 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.

1 participant