Repository navigation
Refuse IPv6 outside 2000::/3 and URLs over 2000 characters - #3
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Member
|
This is approved, once the supply-chain update is applied and Actions turns green. |
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.
Step 2 of the order of work in research/2026-11-19-web-fetch-field-survey.md (G12, G13).
address.rs: an IPv6 address outside2000::/3is refused even where no table entry names its range, so a special range the table misses fails closed. The check runs after the table and the embedded-IPv4 check, so those keep their range names; the new rule reportsoutside 2000::/3.2001::/23joins the table, the one range of the MCP reference server's ten that the table lacked.url_policy.rs:check_urlrefuses a URL overMAX_URL_CHARS(2000) characters before parsing, as the new hardFetchError::UrlTooLong: "the URL is {n} characters long, and the limit is 2000". It counts characters, not bytes. Redirect targets go throughcheck_url, so the limit covers them too.Tests:
2001::/23added to the boundary matrix (with it, all ten reference ranges are covered); addresses on both sides of the2000::/3edges; the reported range name; a 2000-character URL admitted, a 2001-character one refused, and a multi-byte URL counted by characters.Not in this PR, from the same step: the internationalized host name test, the brotli bomb test, and the two doc updates outside the Pack (
decisions/tools-and-packs.md:399,runvil-docschapter 13). Happy to do those next.Verified: nextest (148 passed), clippy with warnings denied, rustdoc with warnings denied, fmt, build-checks.