Skip to content

test(client): reject oversized DNS prefetch metadata - #1335

Merged
fewensa merged 1 commit into
mainfrom
agt/codeoo-rttp-multiround-20261004
Oct 3, 2026
Merged

fewensa merged 1 commit into
mainfrom
agt/codeoo-rttp-multiround-20261004

Conversation

@fewensa

@fewensa fewensa commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Problem

The client response metadata tests covered valid, malformed, duplicate, and absent X-DNS-Prefetch-Control headers, but did not verify the documented 64 KiB value bound at the client API boundary.

Change

Add a focused client regression test that constructs an oversized header using MAX_X_DNS_PREFETCH_CONTROL_VALUE_BYTES + 1 and asserts the response accessor returns an error.

Validation

  • cargo fmt --all -- --check
  • git diff --check
  • cargo test -p rttp_client --test test_response x_dns_prefetch_control (4 passed)

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-03T20:50:57.201590Z 5bc71f5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@fewensa
fewensa merged commit f39684c into main Oct 3, 2026
19 checks passed
@fewensa
fewensa deleted the agt/codeoo-rttp-multiround-20261004 branch October 3, 2026 21:01
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