René's URL Explorer Experiment


Title: gh-126937: ctypes: fix TypeError when a field's size is >65535 bytes by Melissa0x1f992 · Pull Request #126938 · python/cpython · GitHub

Open Graph Title: gh-126937: ctypes: fix TypeError when a field's size is >65535 bytes by Melissa0x1f992 · Pull Request #126938 · python/cpython

X Title: gh-126937: ctypes: fix TypeError when a field's size is >65535 bytes by Melissa0x1f992 · Pull Request #126938 · python/cpython

Description: Used the bit_size_obj as seems to be intended, based on its usage in Lib/ctypes/_layout.py Tested the change locally informally. Didn't write any tests. Issue: gh-126937

Open Graph Description: Used the bit_size_obj as seems to be intended, based on its usage in Lib/ctypes/_layout.py Tested the change locally informally. Didn't write any tests. Issue: gh-126937

X Description: Used the bit_size_obj as seems to be intended, based on its usage in Lib/ctypes/_layout.py Tested the change locally informally. Didn't write any tests. Issue: gh-126937

Opengraph URL: https://github.com/python/cpython/pull/126938

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:f8f232ad-e8d7-eb32-fcb4-610d9871e850
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBE74:3E418A:1BFBED6:24B38C0:6B021E97
html-safe-nonce0cf3fdc8d663e263772cadb7e561f78ba4ce190160cbe9f558c7e82da92c47db
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTc0OjNFNDE4QToxQkZCRUQ2OjI0QjM4QzA6NkIwMjFFOTciLCJ2aXNpdG9yX2lkIjoiMzU3MzE4MjUzNDU3NTU5NTE1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca3a0b476fce19a2caaa0d8141db6a8070446b87a5fac12634e591c2d07a5745e
hovercard-subject-tagpull_request:2183918855
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/python/cpython/pull/126938/files
twitter:imagehttps://avatars.githubusercontent.com/u/70096546?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/70096546?s=400&v=4
og:image:altUsed the bit_size_obj as seems to be intended, based on its usage in Lib/ctypes/_layout.py Tested the change locally informally. Didn't write any tests. Issue: gh-126937
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/126938/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F126938%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%2Fpython%2Fcpython%2Fpull%2F126938%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=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/126938/files
Reloadhttps://github.com/python/cpython/pull/126938/files
Reloadhttps://github.com/python/cpython/pull/126938/files
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
Melissa0x1f992:mainhttps://github.com/Melissa0x1f992/cpython/tree/main
Conversation 38 https://github.com/python/cpython/pull/126938
Commits 20 https://github.com/python/cpython/pull/126938/commits
Checks 0 https://github.com/python/cpython/pull/126938/checks
Files changed https://github.com/python/cpython/pull/126938/files
Please reload this pagehttps://github.com/python/cpython/pull/126938/files
gh-126937: ctypes: fix TypeError when a field's size is >65535 bytes https://github.com/python/cpython/pull/126938/files#top
Show all changes 20 commits https://github.com/python/cpython/pull/126938/files
1962567 Fix rejection when non-bitfield fields are larger than 2^16 bytes Melissa0x1f992 Nov 17, 2024 https://github.com/python/cpython/pull/126938/commits/1962567aac71c16604a405c060b9a11ec6a82646
1900cf5 Merge pull request #1 from Melissa0x1f992/use-bitsize-param Melissa0x1f992 Nov 17, 2024 https://github.com/python/cpython/pull/126938/commits/1900cf5b4ffa76cb2c0185dda6c8cb930a538834
2bd972b 📜🤖 Added by blurb_it. blurb-it[bot] Nov 17, 2024 https://github.com/python/cpython/pull/126938/commits/2bd972b180e5d750cb5140171b9df35677ecb8f7
d2954cd Update Modules/_ctypes/cfield.c terryjreedy Nov 17, 2024 https://github.com/python/cpython/pull/126938/commits/d2954cdefdbe3608116c425796b134ff53fd1d60
0d21229 Remove specific dependency on Python 3.12 for black Melissa0x1f992 Nov 18, 2024 https://github.com/python/cpython/pull/126938/commits/0d2122978662f9efc676c22c2c90f0beeda95f30
d8a6f08 Add test case for large fields Melissa0x1f992 Nov 18, 2024 https://github.com/python/cpython/pull/126938/commits/d8a6f080eaaa70a977c8700243a28f492076258d
16bfb44 Merge pull request #2 from Melissa0x1f992/use-bitsize-param Melissa0x1f992 Nov 18, 2024 https://github.com/python/cpython/pull/126938/commits/16bfb440f722f69ab5a72a1cfaa93dd540aa233a
7402a8f Reduce test field size to (2^31 - 1) to support 32 bit systems Melissa0x1f992 Nov 18, 2024 https://github.com/python/cpython/pull/126938/commits/7402a8f60767694f2b335a8f855d2cdbdc1df7e2
8994ad0 Merge branch 'python:main' into main Melissa0x1f992 Nov 18, 2024 https://github.com/python/cpython/pull/126938/commits/8994ad041c21f6b450cbc613d29a14f05f7b22ca
db171e0 Reduce test field size to (2^31 - 1) to support 32 bit systems Melissa0x1f992 Nov 18, 2024 https://github.com/python/cpython/pull/126938/commits/db171e04a3a6a323e398591b4e235ffc989f15ee
7bc0ceb Merge pull request #3 from Melissa0x1f992/use-bitsize-param Melissa0x1f992 Nov 18, 2024 https://github.com/python/cpython/pull/126938/commits/7bc0cebb10e19004468a28c14aa943b2a7053174
cd8c011 Merge in the main branch encukou Dec 4, 2024 https://github.com/python/cpython/pull/126938/commits/cd8c011684484c557c719a54840789438aee6463
a3bd171 Remove pre-commit config (moved to #126971) encukou Dec 4, 2024 https://github.com/python/cpython/pull/126938/commits/a3bd1714b2873a83a1433288c67da28f9adcc5e7
5e8aec0 Use PyLong_AsSsize_t to convert to Py_ssize_t encukou Dec 4, 2024 https://github.com/python/cpython/pull/126938/commits/5e8aec0419d69a02b179d20412ff4b1719c05662
7d3bb10 Test maximum field size (sys.maxsize / 8, so we can count bits later) encukou Dec 4, 2024 https://github.com/python/cpython/pull/126938/commits/7d3bb107a7376aab67848c05726761bc70d2ad82
946f261 Rework the asserts. encukou Dec 4, 2024 https://github.com/python/cpython/pull/126938/commits/946f26107a913ff77bd39557962d77ca60139e70
19c1b3b Test naked c_char as well encukou Dec 4, 2024 https://github.com/python/cpython/pull/126938/commits/19c1b3be326fdd2a1b508f7a82e1c45eb5052a9a
dcf97f2 Better name for the test encukou Dec 4, 2024 https://github.com/python/cpython/pull/126938/commits/dcf97f2b1c53fce8253e853300dead00eb853443
03bc32b Add comment encukou Dec 4, 2024 https://github.com/python/cpython/pull/126938/commits/03bc32b33b3d9da23a4cf16a7ffb648b67d277b3
f61faa6 Reword changelog encukou Dec 4, 2024 https://github.com/python/cpython/pull/126938/commits/f61faa680c8f41f4de63408f5880e6493eee0912
Clear filters https://github.com/python/cpython/pull/126938/files
Please reload this pagehttps://github.com/python/cpython/pull/126938/files
Please reload this pagehttps://github.com/python/cpython/pull/126938/files
test_struct_fields.py https://github.com/python/cpython/pull/126938/files#diff-6f1a2e3efc217499054a6413e09dd38453c7762b1f65dec32721b1c48bb9df64
2024-11-17-21-35-55.gh-issue-126937.qluVM0.rst https://github.com/python/cpython/pull/126938/files#diff-ebf1a8a40c9201648bc0fcedf589a95a728d2c61a9bc7b057472cb3ac1901c1a
cfield.c https://github.com/python/cpython/pull/126938/files#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
stgdict.c https://github.com/python/cpython/pull/126938/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883
Lib/test/test_ctypes/test_struct_fields.pyhttps://github.com/python/cpython/pull/126938/files#diff-6f1a2e3efc217499054a6413e09dd38453c7762b1f65dec32721b1c48bb9df64
View file https://github.com/Melissa0x1f992/cpython/blob/f61faa680c8f41f4de63408f5880e6493eee0912/Lib/test/test_ctypes/test_struct_fields.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/126938/{{ revealButtonHref }}
https://github.com/python/cpython/pull/126938/files#diff-6f1a2e3efc217499054a6413e09dd38453c7762b1f65dec32721b1c48bb9df64
https://github.com/python/cpython/pull/126938/files#diff-6f1a2e3efc217499054a6413e09dd38453c7762b1f65dec32721b1c48bb9df64
https://github.com/python/cpython/pull/126938/files#diff-6f1a2e3efc217499054a6413e09dd38453c7762b1f65dec32721b1c48bb9df64
Misc/NEWS.d/next/Core_and_Builtins/2024-11-17-21-35-55.gh-issue-126937.qluVM0.rsthttps://github.com/python/cpython/pull/126938/files#diff-ebf1a8a40c9201648bc0fcedf589a95a728d2c61a9bc7b057472cb3ac1901c1a
View file https://github.com/Melissa0x1f992/cpython/blob/f61faa680c8f41f4de63408f5880e6493eee0912/Misc/NEWS.d/next/Core_and_Builtins/2024-11-17-21-35-55.gh-issue-126937.qluVM0.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/126938/{{ revealButtonHref }}
Modules/_ctypes/cfield.chttps://github.com/python/cpython/pull/126938/files#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
View file https://github.com/Melissa0x1f992/cpython/blob/f61faa680c8f41f4de63408f5880e6493eee0912/Modules/_ctypes/cfield.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/126938/{{ revealButtonHref }}
https://github.com/python/cpython/pull/126938/files#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
serhiy-storchakahttps://github.com/serhiy-storchaka
Dec 9, 2024https://github.com/python/cpython/pull/126938/files#r1875927676
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/126938/files
encukouhttps://github.com/encukou
Dec 9, 2024https://github.com/python/cpython/pull/126938/files#r1876046860
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/126938/files
https://github.com/python/cpython/pull/126938/files#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
Modules/_ctypes/stgdict.chttps://github.com/python/cpython/pull/126938/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883
View file https://github.com/Melissa0x1f992/cpython/blob/f61faa680c8f41f4de63408f5880e6493eee0912/Modules/_ctypes/stgdict.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/126938/{{ revealButtonHref }}
https://github.com/python/cpython/pull/126938/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883
https://github.com/python/cpython/pull/126938/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883
serhiy-storchakahttps://github.com/serhiy-storchaka
Dec 9, 2024https://github.com/python/cpython/pull/126938/files#r1875925564
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/126938/files
encukouhttps://github.com/encukou
Dec 9, 2024https://github.com/python/cpython/pull/126938/files#r1876046561
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/126938/files
https://github.com/python/cpython/pull/126938/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883
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.