René's URL Explorer Experiment


Title: id(range-sync): Reader::varint accepts overlong encodings in all three positions — one flight has many wire spellings, the duplicate-spelling property tuple decoding already refuses · Issue #2596 · developing-today/code · GitHub

Open Graph Title: id(range-sync): Reader::varint accepts overlong encodings in all three positions — one flight has many wire spellings, the duplicate-spelling property tuple decoding already refuses · Issue #2596 · developing-today/code

X Title: id(range-sync): Reader::varint accepts overlong encodings in all three positions — one flight has many wire spellings, the duplicate-spelling property tuple decoding already refuses · Issue #2596 · developing-today/code

Description: Problem The range-sync decoder accepts non-canonical (overlong) varints in every varint position, so one message has many wire spellings — the exact duplicate-spelling property this codebase's tuple decoder already refuses for integers a...

Open Graph Description: Problem The range-sync decoder accepts non-canonical (overlong) varints in every varint position, so one message has many wire spellings — the exact duplicate-spelling property this codebase's tupl...

X Description: Problem The range-sync decoder accepts non-canonical (overlong) varints in every varint position, so one message has many wire spellings — the exact duplicate-spelling property this codebase's ...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id(range-sync): Reader::varint accepts overlong encodings in all three positions — one flight has many wire spellings, the duplicate-spelling property tuple decoding already refuses","articleBody":"## Problem\n\nThe range-sync decoder accepts non-canonical (overlong) varints in every varint position, so one message has many wire spellings — the exact duplicate-spelling property this codebase's tuple decoder already refuses for integers and floats.\n\nEvidence (pkgs/id/src/event_store/range.rs, main 3a425552):\n\n- `put_varint` (lines ~400–408) always emits the minimal encoding: it stops as soon as the remaining value fits in one byte.\n- `Reader::varint` (lines ~497–508) accepts any encoding of up to 5 bytes whose final byte is under 0x80 — including overlong forms with leading zero groups (e.g. `0x81 0x00` for 1, or a 5-byte encoding of 5). It never checks that a multi-byte encoding was necessary.\n- The varint positions are: the frame entry count (`decode_frame` / `frame_entry_count`), the Fingerprint count, and the IDs count (`Reader::entry`).\n- Contrast in the same crate: tuple decoding rejects a second spelling on purpose — \"The encoder emits the minimal byte count, so a leading zero payload byte … is an encoding no encoder produces. Reject it rather than accept a second spelling of the same key\" (src/tuple.rs, positive-int branch; the negative-int and float branches do the same, and the float branch rejects the -0.0 stored form for the same reason — see #2421).\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):\n\n- Canonical frame `[more=0, count=0x01, entry(len 0, mode 0 Skip)]` → decode_frame Ok, 1 entry.\n- Same frame with the count overlong-encoded as `0x81 0x00` → decode_frame Ok, 1 entry. Identical message, second spelling.\n- A Fingerprint entry whose count 5 is overlong-encoded as the 5-byte `0x85 0x80 0x80 0x80 0x00` → decode_frame Ok, 1 entry.\n\n## Why it matters\n\n`/id-range-sync/1` flights are the reconciliation wire format between peers that may run different builds. A decoder that accepts spellings no encoder produces makes byte-equality useless for comparing flights (dedup, transcript logs, test vectors, any future flight hashing/signing), and hides peer encoder bugs behind silent acceptance — the same reasoning the tuple decoder already applies. It also leaves the 5-byte cap doing double duty: a 5-byte varint can carry 35 bits, so non-canonical forms smuggle values the field widths never intended (the Fingerprint count narrows to u32 afterwards; the IDs count and frame count are used as usize loop/allocation drivers first).\n\n## Acceptance criteria\n\n- `Reader::varint` rejects a non-minimal encoding (a multi-byte varint whose value fits in fewer bytes), in all three positions: frame entry count, Fingerprint count, IDs count.\n- Tests: minimal encodings at each width boundary (0x7F, 0x80, 0x3FFF, 0x4000) still decode; overlong forms of the same values are refused in each position.\n- Existing range.rs tests stay green.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-30T06:14:34Z","url":"https://github.com/developing-today/code/issues/2596"}

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:d005dfd4-00c5-29c3-a2bb-88213c6e6df4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBDAC:137D5C:3DFB3A:52E7D3:6B074247
html-safe-nonced699c7b024378cefb58c913bb2f59040eca89c1fcaa19b60e2054dfe3dad7bbf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREFDOjEzN0Q1QzozREZCM0E6NTJFN0QzOjZCMDc0MjQ3IiwidmlzaXRvcl9pZCI6Ijc3MzIyNDc3NjY3MjYyOTYxMzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaceee23739d6c4b3c1c991e8a685de6d8006fd0b3eb03e0f49668d9f5639f904ed
hovercard-subject-tagissue:6114232694
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/2596/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fa2e6f59f1cdd65efc3ed07b8887321553ddf5631b79f722eece3926406e03fe/developing-today/code/issues/2596
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fa2e6f59f1cdd65efc3ed07b8887321553ddf5631b79f722eece3926406e03fe/developing-today/code/issues/2596
og:image:altProblem The range-sync decoder accepts non-canonical (overlong) varints in every varint position, so one message has many wire spellings — the exact duplicate-spelling property this codebase's tupl...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
Nonee906c59266d83416af9bcc8b61b9a96e70a3a84a066bd24f6671c193dd134a04
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
releasea8418b8cd1f6ecc99bee02e3f7dde540702dd08c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/2596#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F2596
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%2F2596
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/2596
Reloadhttps://github.com/developing-today/code/issues/2596
Reloadhttps://github.com/developing-today/code/issues/2596
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests196 (196)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/2596
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/2596
#3470https://github.com/developing-today/code/pull/3470
id(range-sync): Reader::varint accepts overlong encodings in all three positions — one flight has many wire spellings, the duplicate-spelling property tuple decoding already refuseshttps://github.com/developing-today/code/issues/2596#top
#3470https://github.com/developing-today/code/pull/3470
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/lowhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Flow%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/2596#issue-6114232694
3a42555https://github.com/developing-today/code/commit/3a42555241a549acfd9c950a9734d75e1c23904c
id(tuple): decode admits the -0.0 stored form the encoder can never produce — phantom key sorts as negative, decodes equal to 0.0 #2421https://github.com/developing-today/code/issues/2421
3a42555https://github.com/developing-today/code/commit/3a42555241a549acfd9c950a9734d75e1c23904c
Nexthttps://github.com/developing-today/code/issues/2596?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/lowhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Flow%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/2596#event-34663313518
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 30, 2026https://github.com/developing-today/code/issues/2596#issuecomment-6516320406
3a42555https://github.com/developing-today/code/commit/3a42555241a549acfd9c950a9734d75e1c23904c
id(range-sync): Reader::varint accepts overlong encodings in all three positions — one flight has many wire spellings, the duplicate-spelling property tuple decoding already refuses #2596https://github.com/developing-today/code/issues/2596
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 30, 2026https://github.com/developing-today/code/issues/2596#event-34685098745
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2596#issuecomment-6556267208
id(range-sync): Reader::varint accepts overlong encodings in all three positions — one flight has many wire spellings, the duplicate-spelling property tuple decoding already refuses #2596https://github.com/developing-today/code/issues/2596
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/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
on Nov 1, 2026https://github.com/developing-today/code/issues/2596#event-34824291687
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
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
on Nov 1, 2026https://github.com/developing-today/code/issues/2596#event-34827524050
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2596#issuecomment-6557122956
id(range-sync): reject non-minimal varints in Reader::varint (#2596) #3470https://github.com/developing-today/code/pull/3470
dezren39https://github.com/dezren39
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/2596#event-34828324449
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2596#issuecomment-6557332382
id(range-sync): reject non-minimal varints in Reader::varint (#2596) #3470https://github.com/developing-today/code/pull/3470
4ecb551https://github.com/developing-today/code/commit/4ecb5513b9a53bcab0b862aaed270d57d8ec9dcc
id(range-sync): reject non-minimal varints in Reader::varint (#2596) #3470https://github.com/developing-today/code/pull/3470
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2596#event-34829022655
Merge pull request #3470 from developing-today/queue/5399-2596-varint…https://github.com/developing-today/code/commit/628c06ac85501e28c28341d2ab517e6b6aa3998d
#3470https://github.com/developing-today/code/pull/3470
628c06ahttps://github.com/developing-today/code/commit/628c06ac85501e28c28341d2ab517e6b6aa3998d
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#3470https://github.com/developing-today/code/pull/3470
on Nov 1, 2026https://github.com/developing-today/code/issues/2596#event-34829023237
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2596#issuecomment-6557511892
id(range-sync): reject non-minimal varints in Reader::varint (#2596) #3470https://github.com/developing-today/code/pull/3470
id(range-sync): reject non-minimal varints in Reader::varint (#2596) #3470https://github.com/developing-today/code/pull/3470
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/2596#event-34829034756
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/2596
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/2596
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/lowhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Flow%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.