René's URL Explorer Experiment


Title: bpo-28129: fix ctypes crashes by orenmn · Pull Request #386 · python/cpython · GitHub

Open Graph Title: bpo-28129: fix ctypes crashes by orenmn · Pull Request #386 · python/cpython

X Title: bpo-28129: fix ctypes crashes by orenmn · Pull Request #386 · python/cpython

Description: bpo-28129: replace some assertion failures in ctypes (mentioned in http://bugs.python.org/issue28129) with if statements add tests to verify these changes

Open Graph Description: bpo-28129: replace some assertion failures in ctypes (mentioned in http://bugs.python.org/issue28129) with if statements add tests to verify these changes

X Description: bpo-28129: replace some assertion failures in ctypes (mentioned in http://bugs.python.org/issue28129) with if statements add tests to verify these changes

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e357c2a0-c1a7-1df3-136d-160b3374ce2d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC2B4:188FE8:5BDE878:814357D:6A500EBF
html-safe-nonce7b8ce549d81f46faedf670575ad07a2318564ad81f7d8043aed32e7593c98f55
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkI0OjE4OEZFODo1QkRFODc4OjgxNDM1N0Q6NkE1MDBFQkYiLCJ2aXNpdG9yX2lkIjoiMTg0NzE3MDI3NjQ5NzgyMTM3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc8c69c4917f931430716c335b96149f38b9f70e017afcd513c76bf1547c2ec82
hovercard-subject-tagpull_request:108657183
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/386/files
twitter:imagehttps://avatars.githubusercontent.com/u/10146804?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/10146804?s=400&v=4
og:image:altbpo-28129: replace some assertion failures in ctypes (mentioned in http://bugs.python.org/issue28129) with if statements add tests to verify these changes
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonefe4f38b24922a1ce81c1708c3793b47c185599b9144ab94f6ca846b00698058d
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
release42b6390c91978a16f9196c38c7a00e9bf21f37e7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/386/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F386%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F386%2Ffiles
Sign up https://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/386/files
Reloadhttps://github.com/python/cpython/pull/386/files
Reloadhttps://github.com/python/cpython/pull/386/files
Please reload this pagehttps://github.com/python/cpython/pull/386/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/386/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
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
vstinnerhttps://github.com/vstinner
python:masterhttps://github.com/python/cpython/tree/master
orenmn:bpo28129-fix-ctypes-crasheshttps://github.com/orenmn/cpython/tree/bpo28129-fix-ctypes-crashes
Conversation 10 https://github.com/python/cpython/pull/386
Commits 6 https://github.com/python/cpython/pull/386/commits
Checks 0 https://github.com/python/cpython/pull/386/checks
Files changed https://github.com/python/cpython/pull/386/files
Please reload this pagehttps://github.com/python/cpython/pull/386/files
bpo-28129: fix ctypes crashes https://github.com/python/cpython/pull/386/files#top
Show all changes 6 commits https://github.com/python/cpython/pull/386/files
66074b5 init commit, with initial tests for from_param and fields __set__ and… Feb 28, 2017 https://github.com/python/cpython/pull/386/commits/66074b5cd9b5980113c5b74d29c3a8d786661bd1
365a9c4 added the rest of tests and patches. probably only a first draft. orenmn Feb 28, 2017 https://github.com/python/cpython/pull/386/commits/365a9c479d2076172b9411988267eb17ddcf9ba5
c9e0ddf removed trailing spaces orenmn Mar 1, 2017 https://github.com/python/cpython/pull/386/commits/c9e0ddf87d4a602fe4e1a57090fbd225714485d0
7cbe79c Merge branch 'master' of https://github.com/python/cpython into bpo28… orenmn Mar 1, 2017 https://github.com/python/cpython/pull/386/commits/7cbe79cb4016f3b83df97926daa7c9e9bf1471de
6f0029c replace ctype with ctypes in error messages orenmn Mar 2, 2017 https://github.com/python/cpython/pull/386/commits/6f0029c0b1f61c18c8cc45185cefaa60ae5bd1e7
bb75d81 change back from ctypes instance to ctype instance orenmn Mar 2, 2017 https://github.com/python/cpython/pull/386/commits/bb75d81897084d4597f96d570a5d8c38e7bb2b0c
Clear filters https://github.com/python/cpython/pull/386/files
Please reload this pagehttps://github.com/python/cpython/pull/386/files
Please reload this pagehttps://github.com/python/cpython/pull/386/files
test_frombuffer.py https://github.com/python/cpython/pull/386/files#diff-1cdb9f2a85b634aa315cadfb8d87ec459e926ed3d4139163acc9a9bd094ff4c5
test_funcptr.py https://github.com/python/cpython/pull/386/files#diff-5c1185268fa8229a564c0a36411bb54977120db3ca1a9ce5ed5c8572b865260c
test_parameters.py https://github.com/python/cpython/pull/386/files#diff-17e1e693a633b98e193ea6cfb38b67cbc0657a65b1737003f7ad3781bf82026b
test_pointers.py https://github.com/python/cpython/pull/386/files#diff-361f15f86b093144a9139472d36253b431168926eca42ab508abdf2283d0d315
test_struct_fields.py https://github.com/python/cpython/pull/386/files#diff-491e1522d9cb695fda05c197aef091e266ebc5fb270e69a3be4b2bafa6dd39a8
_ctypes.c https://github.com/python/cpython/pull/386/files#diff-402bc51df93eaaca2e2f2551ec0206d8af190722ae4703c178554b565d7c14b4
cfield.c https://github.com/python/cpython/pull/386/files#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
Lib/ctypes/test/test_frombuffer.pyhttps://github.com/python/cpython/pull/386/files#diff-1cdb9f2a85b634aa315cadfb8d87ec459e926ed3d4139163acc9a9bd094ff4c5
View file https://github.com/orenmn/cpython/blob/bb75d81897084d4597f96d570a5d8c38e7bb2b0c/Lib/ctypes/test/test_frombuffer.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/386/{{ revealButtonHref }}
https://github.com/python/cpython/pull/386/files#diff-1cdb9f2a85b634aa315cadfb8d87ec459e926ed3d4139163acc9a9bd094ff4c5
Lib/ctypes/test/test_funcptr.pyhttps://github.com/python/cpython/pull/386/files#diff-5c1185268fa8229a564c0a36411bb54977120db3ca1a9ce5ed5c8572b865260c
View file https://github.com/orenmn/cpython/blob/bb75d81897084d4597f96d570a5d8c38e7bb2b0c/Lib/ctypes/test/test_funcptr.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/386/{{ revealButtonHref }}
https://github.com/python/cpython/pull/386/files#diff-5c1185268fa8229a564c0a36411bb54977120db3ca1a9ce5ed5c8572b865260c
Lib/ctypes/test/test_parameters.pyhttps://github.com/python/cpython/pull/386/files#diff-17e1e693a633b98e193ea6cfb38b67cbc0657a65b1737003f7ad3781bf82026b
View file https://github.com/orenmn/cpython/blob/bb75d81897084d4597f96d570a5d8c38e7bb2b0c/Lib/ctypes/test/test_parameters.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/386/{{ revealButtonHref }}
https://github.com/python/cpython/pull/386/files#diff-17e1e693a633b98e193ea6cfb38b67cbc0657a65b1737003f7ad3781bf82026b
https://github.com/python/cpython/pull/386/files#diff-17e1e693a633b98e193ea6cfb38b67cbc0657a65b1737003f7ad3781bf82026b
Lib/ctypes/test/test_pointers.pyhttps://github.com/python/cpython/pull/386/files#diff-361f15f86b093144a9139472d36253b431168926eca42ab508abdf2283d0d315
View file https://github.com/orenmn/cpython/blob/bb75d81897084d4597f96d570a5d8c38e7bb2b0c/Lib/ctypes/test/test_pointers.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/386/{{ revealButtonHref }}
https://github.com/python/cpython/pull/386/files#diff-361f15f86b093144a9139472d36253b431168926eca42ab508abdf2283d0d315
Lib/ctypes/test/test_struct_fields.pyhttps://github.com/python/cpython/pull/386/files#diff-491e1522d9cb695fda05c197aef091e266ebc5fb270e69a3be4b2bafa6dd39a8
View file https://github.com/orenmn/cpython/blob/bb75d81897084d4597f96d570a5d8c38e7bb2b0c/Lib/ctypes/test/test_struct_fields.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/386/{{ revealButtonHref }}
https://github.com/python/cpython/pull/386/files#diff-491e1522d9cb695fda05c197aef091e266ebc5fb270e69a3be4b2bafa6dd39a8
Modules/_ctypes/_ctypes.chttps://github.com/python/cpython/pull/386/files#diff-402bc51df93eaaca2e2f2551ec0206d8af190722ae4703c178554b565d7c14b4
View file https://github.com/orenmn/cpython/blob/bb75d81897084d4597f96d570a5d8c38e7bb2b0c/Modules/_ctypes/_ctypes.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/386/{{ revealButtonHref }}
https://github.com/python/cpython/pull/386/files#diff-402bc51df93eaaca2e2f2551ec0206d8af190722ae4703c178554b565d7c14b4
https://github.com/python/cpython/pull/386/files#diff-402bc51df93eaaca2e2f2551ec0206d8af190722ae4703c178554b565d7c14b4
https://github.com/python/cpython/pull/386/files#diff-402bc51df93eaaca2e2f2551ec0206d8af190722ae4703c178554b565d7c14b4
https://github.com/python/cpython/pull/386/files#diff-402bc51df93eaaca2e2f2551ec0206d8af190722ae4703c178554b565d7c14b4
https://github.com/python/cpython/pull/386/files#diff-402bc51df93eaaca2e2f2551ec0206d8af190722ae4703c178554b565d7c14b4
https://github.com/python/cpython/pull/386/files#diff-402bc51df93eaaca2e2f2551ec0206d8af190722ae4703c178554b565d7c14b4
https://github.com/python/cpython/pull/386/files#diff-402bc51df93eaaca2e2f2551ec0206d8af190722ae4703c178554b565d7c14b4
https://github.com/python/cpython/pull/386/files#diff-402bc51df93eaaca2e2f2551ec0206d8af190722ae4703c178554b565d7c14b4
https://github.com/python/cpython/pull/386/files#diff-402bc51df93eaaca2e2f2551ec0206d8af190722ae4703c178554b565d7c14b4
https://github.com/python/cpython/pull/386/files#diff-402bc51df93eaaca2e2f2551ec0206d8af190722ae4703c178554b565d7c14b4
https://github.com/python/cpython/pull/386/files#diff-402bc51df93eaaca2e2f2551ec0206d8af190722ae4703c178554b565d7c14b4
https://github.com/python/cpython/pull/386/files#diff-402bc51df93eaaca2e2f2551ec0206d8af190722ae4703c178554b565d7c14b4
https://github.com/python/cpython/pull/386/files#diff-402bc51df93eaaca2e2f2551ec0206d8af190722ae4703c178554b565d7c14b4
https://github.com/python/cpython/pull/386/files#diff-402bc51df93eaaca2e2f2551ec0206d8af190722ae4703c178554b565d7c14b4
Modules/_ctypes/cfield.chttps://github.com/python/cpython/pull/386/files#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
View file https://github.com/orenmn/cpython/blob/bb75d81897084d4597f96d570a5d8c38e7bb2b0c/Modules/_ctypes/cfield.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/386/{{ revealButtonHref }}
https://github.com/python/cpython/pull/386/files#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
vstinnerhttps://github.com/vstinner
Mar 2, 2017https://github.com/python/cpython/pull/386/files#r103891803
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/386/files
https://github.com/python/cpython/pull/386/files#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
vstinnerhttps://github.com/vstinner
Mar 2, 2017https://github.com/python/cpython/pull/386/files#r103891820
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/386/files
https://github.com/python/cpython/pull/386/files#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
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.