René's URL Explorer Experiment


Title: Reject negative lengths in Bit.from_binary by beyondsundial · Pull Request #173 · pgvector/pgvector-python · GitHub

Open Graph Title: Reject negative lengths in Bit.from_binary by beyondsundial · Pull Request #173 · pgvector/pgvector-python

X Title: Reject negative lengths in Bit.from_binary by beyondsundial · Pull Request #173 · pgvector/pgvector-python

Description: Reject a negative bit length before constructing a Bit from binary data. With an empty payload, lengths -1 through -7 currently pass the byte-count check because (length + 7) // 8 is zero. Add negative-length regression cases and round-trip controls at lengths 0, 1, 7, 8 and 9. Validation: 75 Bit/vector/half-vector/sparse-vector tests passed; mypy for the changed files and git diff --check passed. Three new negative-length cases fail on the unchanged upstream baseline. PostgreSQL/driver integration tests and the full CI matrix were not run.

Open Graph Description: Reject a negative bit length before constructing a Bit from binary data. With an empty payload, lengths -1 through -7 currently pass the byte-count check because (length + 7) // 8 is zero. Add nega...

X Description: Reject a negative bit length before constructing a Bit from binary data. With an empty payload, lengths -1 through -7 currently pass the byte-count check because (length + 7) // 8 is zero. Add nega...

Opengraph URL: https://github.com/pgvector/pgvector-python/pull/173

X: @github

direct link

Domain: redirect.github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:202dab8c-5260-6d36-2068-d4ebc05c9cba
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC49C:3CBC2:B3F105:EB5E8E:6AFE8635
html-safe-nonce4d115fc697458799e0b66cb1b40021e9955a91da982c477ec0c1a121360b58b8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDlDOjNDQkMyOkIzRjEwNTpFQjVFOEU6NkFGRTg2MzUiLCJ2aXNpdG9yX2lkIjoiMjc2NjM0NDg1OTM4NjE5OTU3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac87afecf5b6e3a12f6adb5b8f85466e37e561f4192fb155b1ebe8d33cc2de4b03
hovercard-subject-tagpull_request:5035418229
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/pgvector/pgvector-python/pull/173/files
twitter:imagehttps://avatars.githubusercontent.com/u/67931863?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/67931863?s=400&v=4
og:image:altReject a negative bit length before constructing a Bit from binary data. With an empty payload, lengths -1 through -7 currently pass the byte-count check because (length + 7) // 8 is zero. Add nega...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/pgvector/pgvector-python git https://github.com/pgvector/pgvector-python.git
octolytics-dimension-user_id98363230
octolytics-dimension-user_loginpgvector
octolytics-dimension-repository_id376300726
octolytics-dimension-repository_nwopgvector/pgvector-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id376300726
octolytics-dimension-repository_network_root_nwopgvector/pgvector-python
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://redirect.github.com/pgvector/pgvector-python/pull/173/files#start-of-content
https://redirect.github.com/
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpgvector%2Fpgvector-python%2Fpull%2F173%2Ffiles
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://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpgvector%2Fpgvector-python%2Fpull%2F173%2Ffiles
Sign uphttps://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=pgvector%2Fpgvector-python
Reloadhttps://redirect.github.com/pgvector/pgvector-python/pull/173/files
Reloadhttps://redirect.github.com/pgvector/pgvector-python/pull/173/files
Reloadhttps://redirect.github.com/pgvector/pgvector-python/pull/173/files
pgvectorhttps://redirect.github.com/pgvector
pgvector-pythonhttps://redirect.github.com/pgvector/pgvector-python
Codehttps://redirect.github.com/pgvector/pgvector-python
Issues2 (2)https://redirect.github.com/pgvector/pgvector-python/issues
Pull requests8 (8)https://redirect.github.com/pgvector/pgvector-python/pulls
Actionshttps://redirect.github.com/pgvector/pgvector-python/actions
Security and qualityhttps://redirect.github.com/pgvector/pgvector-python/security
Insightshttps://redirect.github.com/pgvector/pgvector-python/insights
Sign up for GitHub https://redirect.github.com/signup?return_to=%2Fpgvector%2Fpgvector-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://redirect.github.com/login?return_to=%2Fpgvector%2Fpgvector-python%2Fissues%2Fnew%2Fchoose
beyondsundialhttps://redirect.github.com/beyondsundial
pgvector:masterhttps://redirect.github.com/pgvector/pgvector-python/tree/master
beyondsundial:contrib/reject-negative-bit-lengthhttps://redirect.github.com/beyondsundial/pgvector-python/tree/contrib/reject-negative-bit-length
Conversation 1 https://redirect.github.com/pgvector/pgvector-python/pull/173
Commits 1 https://redirect.github.com/pgvector/pgvector-python/pull/173/commits
Checks 0 https://redirect.github.com/pgvector/pgvector-python/pull/173/checks
Files changed https://redirect.github.com/pgvector/pgvector-python/pull/173/files
Please reload this pagehttps://redirect.github.com/pgvector/pgvector-python/pull/173/files
Reject negative lengths in Bit.from_binary https://redirect.github.com/pgvector/pgvector-python/pull/173/files#top
Show all changes 1 commit https://redirect.github.com/pgvector/pgvector-python/pull/173/files
0d23b07 Reject negative lengths in Bit.from_binary beyondsundial Oct 27, 2026 https://redirect.github.com/pgvector/pgvector-python/pull/173/commits/0d23b07915285364267c4d8b66f347b4459c9cd6
Clear filters https://redirect.github.com/pgvector/pgvector-python/pull/173/files
Please reload this pagehttps://redirect.github.com/pgvector/pgvector-python/pull/173/files
Please reload this pagehttps://redirect.github.com/pgvector/pgvector-python/pull/173/files
bit.py https://redirect.github.com/pgvector/pgvector-python/pull/173/files#diff-276b741be34187d469715821fc36f386667737324df17636c5a5eb74aafcb7de
test_bit.py https://redirect.github.com/pgvector/pgvector-python/pull/173/files#diff-86ce4fcfbffe183facccd2caeba7e0a157e613d968eea59a8c19c73ad0943756
pgvector/bit.pyhttps://redirect.github.com/pgvector/pgvector-python/pull/173/files#diff-276b741be34187d469715821fc36f386667737324df17636c5a5eb74aafcb7de
View file https://redirect.github.com/beyondsundial/pgvector-python/blob/0d23b07915285364267c4d8b66f347b4459c9cd6/pgvector/bit.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/pgvector/pgvector-python/pull/173/{{ revealButtonHref }}
https://redirect.github.com/pgvector/pgvector-python/pull/173/files#diff-276b741be34187d469715821fc36f386667737324df17636c5a5eb74aafcb7de
https://redirect.github.com/pgvector/pgvector-python/pull/173/files#diff-276b741be34187d469715821fc36f386667737324df17636c5a5eb74aafcb7de
tests/test_bit.pyhttps://redirect.github.com/pgvector/pgvector-python/pull/173/files#diff-86ce4fcfbffe183facccd2caeba7e0a157e613d968eea59a8c19c73ad0943756
View file https://redirect.github.com/beyondsundial/pgvector-python/blob/0d23b07915285364267c4d8b66f347b4459c9cd6/tests/test_bit.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/pgvector/pgvector-python/pull/173/{{ revealButtonHref }}
https://redirect.github.com/pgvector/pgvector-python/pull/173/files#diff-86ce4fcfbffe183facccd2caeba7e0a157e613d968eea59a8c19c73ad0943756
https://redirect.github.com/pgvector/pgvector-python/pull/173/files#diff-86ce4fcfbffe183facccd2caeba7e0a157e613d968eea59a8c19c73ad0943756
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

Viewport: width=device-width


URLs of crawlers that visited me.