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: 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:97906bed-bc2a-2558-ef1b-500a631fc65b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8DD4:2224A5:108450D:1694EE6:6AFEA178
html-safe-noncec3e6339a29056a340bc7d1d4c83b26110db72bf622f958b90477b111db475913
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4REQ0OjIyMjRBNToxMDg0NTBEOjE2OTRFRTY6NkFGRUExNzgiLCJ2aXNpdG9yX2lkIjoiMTEyNjU1ODgxNjc1MDQ0NDkyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd5fd44377a66e186a2e0dfdfff69e412de4271480ee94081c5db61469ec100cb
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
None95b2753c978240785d6cca00783c00a371b2d7d9879bb32e305170a1b19bd28e
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
release3f25273206cd841171bca0002261ae4c9757d934
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

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