René's URL Explorer Experiment


Title: id(range-sync): frames() never validates an entry's upper-bound length — bounds over KEY_LEN encode into frames decode_frame itself rejects, ≥256 wraps the u8 length prefix and garbles the entry, and check_bounds approves them all · Issue #2595 · developing-today/code · GitHub

Open Graph Title: id(range-sync): frames() never validates an entry's upper-bound length — bounds over KEY_LEN encode into frames decode_frame itself rejects, ≥256 wraps the u8 length prefix and garbles the entry, and check_bounds approves them all · Issue #2595 · developing-today/code

X Title: id(range-sync): frames() never validates an entry's upper-bound length — bounds over KEY_LEN encode into frames decode_frame itself rejects, ≥256 wraps the u8 length prefix and garbles the entry, and check_bounds approves them all · Issue #2595 · developing-today/code

Description: Problem The range-sync encoder never checks an entry's upper-bound length against the key length, so it happily emits frames that the crate's own decoder refuses — and past 255 bytes the one-byte length prefix wraps and garbles the entry...

Open Graph Description: Problem The range-sync encoder never checks an entry's upper-bound length against the key length, so it happily emits frames that the crate's own decoder refuses — and past 255 bytes the one-byte l...

X Description: Problem The range-sync encoder never checks an entry's upper-bound length against the key length, so it happily emits frames that the crate's own decoder refuses — and past 255 bytes the on...

Opengraph URL: https://github.com/developing-today/code/issues/2595

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id(range-sync): frames() never validates an entry's upper-bound length — bounds over KEY_LEN encode into frames decode_frame itself rejects, ≥256 wraps the u8 length prefix and garbles the entry, and check_bounds approves them all","articleBody":"## Problem\n\nThe range-sync encoder never checks an entry's upper-bound length against the key length, so it happily emits frames that the crate's own decoder refuses — and past 255 bytes the one-byte length prefix wraps and garbles the entry stream.\n\nEvidence (pkgs/id/src/event_store/range.rs, main 3a425552):\n\n- Wire format (module doc, lines 19–24): an entry's upper bound is \"one length byte, 0 for +infinity, then the prefix\", and a bound is a prefix of a sync key — at most `KEY_LEN` = 72 bytes (line 35).\n- `encode_entry` (line 415) writes the length as `out.push(b.len() as u8)` with no validation. `frames()` (lines ~446–465) checks only that the encoded entry fits the frame budget — never the bound length.\n- The decoder enforces the limit the encoder ignores: `Reader::entry` rejects `len > KEY_LEN` with \"a bound of {len} bytes is longer than a key\".\n- `check_bounds` (lines ~571–590) — the documented pre-flight check that `Party::respond` requires callers to have run on a message — checks only that bounds increase and that nothing follows +infinity. It does not check bound length either, so it approves every case below.\n\n## Verified this run (laptop probe, real crate, main 3a425552)\n\nProbe: ~/git/fleet/probe-2026-10-30-laneA-rangeenc/ (`id` path dependency, default-features off; one `Entry { upper: Some(vec![0xAA; N]), mode: Skip }` per case):\n\n- N=72: frames() OK, decode_frame round-trips equal. check_bounds Ok.\n- N=100: frames() OK, decode_frame ERR \"a bound of 100 bytes is longer than a key\". check_bounds Ok.\n- N=255: frames() OK, decode_frame ERR (same). check_bounds Ok.\n- N=256: frames() OK, decode_frame ERR \"unknown mode byte 170\" — the length byte wrapped to 0 (+infinity) and the decoder started reading the bound's own bytes as the mode byte; the frame's remaining bytes are garbage. With different bound bytes the wrapped prefix can parse as a *different, valid-looking entry* instead of erroring. check_bounds Ok.\n- N=300: frames() OK, decode_frame ERR \"unknown mode byte 170\" (300 wraps to 44, then the stream desynchronises). check_bounds Ok.\n\nInternal producers are safe today only by construction: separators are at most KEY_LEN bytes and inbound entries pass through decode_frame. But `Entry`, `frames`, `check_bounds` and `Party::respond` are the public library surface of `/id-range-sync/1`, and respond() clones the upper bounds of the caller's message into its answer — any caller that builds or forwards a message without going through decode_frame (exactly the callers check_bounds exists for) can produce an undecodable or silently re-interpreted flight and kill the session with errors that point at the wrong layer (\"unknown mode byte\").\n\n## Why it matters\n\nA sender-side length bug should fail at the sender, with its own name on it. Today it surfaces on the peer (or the same process one step later) as a framing/mode error, and at ≥256 bytes the length-prefix wrap means the byte stream no longer means what the sender wrote. Fail-closed at encode time is the same pattern this module already uses for frame budgets (\"an entry of {} bytes does not fit a {}-byte frame\").\n\n## Acceptance criteria\n\n- `frames()` (or `encode_entry`) refuses an entry whose upper bound is longer than KEY_LEN, with an error naming the bound length and the 72-byte key limit.\n- `check_bounds` also refuses an over-length bound, so the documented pre-flight check catches what respond() would otherwise clone into its answer.\n- Tests cover bound lengths 72 (accepted, round-trips), 73/100/255 (refused at encode), and 256/300 (refused at encode — no wrap), plus check_bounds refusing an over-length bound.\n- Existing range.rs tests stay green.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-30T06:12:43Z","url":"https://github.com/developing-today/code/issues/2595"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d2fcd6f0-d2c0-68ff-763d-9e659de65cfa
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA8B4:1C7149:B8E04:FA412:6B07576C
html-safe-nonce05b7867d675c628b91914a7bc85b3a135916c0cf353725306107382b56c29585
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEI0OjFDNzE0OTpCOEUwNDpGQTQxMjo2QjA3NTc2QyIsInZpc2l0b3JfaWQiOiI2NDk3NTU5NTY4MDkxNDA0MTQwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca978af3cc2a84c50c2405df3d5547da304ae4d0eb146a9e5c0d6d612ef159787
hovercard-subject-tagissue:6114212105
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/2595/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5cb4ccb9d053967b6fce4c2bd0b8671737e1d9e3dbc26f08ef04894bc136ce3f/developing-today/code/issues/2595
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5cb4ccb9d053967b6fce4c2bd0b8671737e1d9e3dbc26f08ef04894bc136ce3f/developing-today/code/issues/2595
og:image:altProblem The range-sync encoder never checks an entry's upper-bound length against the key length, so it happily emits frames that the crate's own decoder refuses — and past 255 bytes the one-byte l...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
Nonee8a742cfa7d479a227a6a6e03ec8d1b3f77f746d4752d7d11136b478718b9658
turbo-cache-controlno-preview
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7bda31a5f68d83542e3adebba328d48747c5f604
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/2595#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F2595
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F2595
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/2595
Reloadhttps://github.com/developing-today/code/issues/2595
Reloadhttps://github.com/developing-today/code/issues/2595
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1k (1k)https://github.com/developing-today/code/issues
Pull requests205 (205)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/2595
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/2595
#3462https://github.com/developing-today/code/pull/3462
id(range-sync): frames() never validates an entry's upper-bound length — bounds over KEY_LEN encode into frames decode_frame itself rejects, ≥256 wraps the u8 length prefix and garbles the entry, and check_bounds approves them allhttps://github.com/developing-today/code/issues/2595#top
#3462https://github.com/developing-today/code/pull/3462
https://github.com/dezren39
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
effort/xshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fxs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 30, 2026https://github.com/developing-today/code/issues/2595#issue-6114212105
3a42555https://github.com/developing-today/code/commit/3a42555241a549acfd9c950a9734d75e1c23904c
3a42555https://github.com/developing-today/code/commit/3a42555241a549acfd9c950a9734d75e1c23904c
Nexthttps://github.com/developing-today/code/issues/2595?timeline_page=1
dezren39https://github.com/dezren39
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
effort/xshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fxs%22
on Oct 30, 2026https://github.com/developing-today/code/issues/2595#event-34663206866
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 30, 2026https://github.com/developing-today/code/issues/2595#issuecomment-6516296352
3a42555https://github.com/developing-today/code/commit/3a42555241a549acfd9c950a9734d75e1c23904c
id(range-sync): frames() never validates an entry's upper-bound length — bounds over KEY_LEN encode into frames decode_frame itself rejects, ≥256 wraps the u8 length prefix and garbles the entry, and check_bounds approves them all #2595https://github.com/developing-today/code/issues/2595
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 30, 2026https://github.com/developing-today/code/issues/2595#event-34685101872
dezren39https://github.com/dezren39
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
on Nov 1, 2026https://github.com/developing-today/code/issues/2595#event-34824276960
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2595#issuecomment-6556372962
id(range-sync): refuse entry upper bounds over KEY_LEN at frames() and check_bounds (#2595) #3462https://github.com/developing-today/code/pull/3462
id(range-sync): refuse entry upper bounds over KEY_LEN at frames() and check_bounds (#2595) #3462https://github.com/developing-today/code/pull/3462
id(range-sync): refuse entry upper bounds over KEY_LEN at frames() and check_bounds (#2595) #3462https://github.com/developing-today/code/pull/3462
dezren39https://github.com/dezren39
queue/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fparked%22
status/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fparked%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
status/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fparked%22
queue/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fparked%22
on Nov 1, 2026https://github.com/developing-today/code/issues/2595#event-34824641969
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2595#issuecomment-6556592273
id(range-sync): refuse entry upper bounds over KEY_LEN at frames() and check_bounds (#2595) #3462https://github.com/developing-today/code/pull/3462
id(range-sync): refuse entry upper bounds over KEY_LEN at frames() and check_bounds (#2595) #3462https://github.com/developing-today/code/pull/3462
id(range-sync): frames() never validates an entry's upper-bound length — bounds over KEY_LEN encode into frames decode_frame itself rejects, ≥256 wraps the u8 length prefix and garbles the entry, and check_bounds approves them all #2595https://github.com/developing-today/code/issues/2595
id(range-sync): refuse entry upper bounds over KEY_LEN at frames() and check_bounds (#2595) #3462https://github.com/developing-today/code/pull/3462
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2595#event-34825499866
Merge pull request #3462 from developing-today/queue/5390-2595-range-…https://github.com/developing-today/code/commit/317c7c2889fd21289b0d5f54c16bcd27ef04866d
#3462https://github.com/developing-today/code/pull/3462
317c7c2https://github.com/developing-today/code/commit/317c7c2889fd21289b0d5f54c16bcd27ef04866d
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#3462https://github.com/developing-today/code/pull/3462
on Nov 1, 2026https://github.com/developing-today/code/issues/2595#event-34825500268
dezren39https://github.com/dezren39
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
on Nov 1, 2026https://github.com/developing-today/code/issues/2595#event-34825516193
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2595#issuecomment-6556603963
id(range-sync): refuse entry upper bounds over KEY_LEN at frames() and check_bounds (#2595) #3462https://github.com/developing-today/code/pull/3462
317c7c2https://github.com/developing-today/code/commit/317c7c2889fd21289b0d5f54c16bcd27ef04866d
id(range-sync): refuse entry upper bounds over KEY_LEN at frames() and check_bounds (#2595) #3462https://github.com/developing-today/code/pull/3462
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/2595
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/2595
dezren39https://github.com/dezren39
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
effort/xshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fxs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.