René's URL Explorer Experiment


Title: gh-106242: Fix path truncation in normpath by finnagin · Pull Request #106816 · python/cpython · GitHub

Open Graph Title: gh-106242: Fix path truncation in normpath by finnagin · Pull Request #106816 · python/cpython

X Title: gh-106242: Fix path truncation in normpath by finnagin · Pull Request #106816 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Following the suggestion from this comment in the original issue this PR adds a new function _Py_normpathAndSize which behaves like _Py_normpath but also takes a pointer which it will use to store ...

X Description: Following the suggestion from this comment in the original issue this PR adds a new function _Py_normpathAndSize which behaves like _Py_normpath but also takes a pointer which it will use to store ...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:123db1df-16a6-378b-a138-9e2e89a7ce25
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAC48:259088:89FFDD0:BAA07BC:6A5E5770
html-safe-nonce8bf625dd37c205519ab27b13838ff9e07a19e3ecaee79d97b4a47960f3c455a8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzQ4OjI1OTA4ODo4OUZGREQwOkJBQTA3QkM6NkE1RTU3NzAiLCJ2aXNpdG9yX2lkIjoiNTUyMzQ4MDIxMzkxNjExMjc1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8f557bf3140799e89fa6030e8a4769c0fb8869a8c27fbd2a5b1c0ac154f43fe4
hovercard-subject-tagpull_request:1436415030
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/106816/commits
twitter:imagehttps://opengraph.githubassets.com/5cd280594e6b87a87e47d36693f7318c4b988fd6be73c8ff458f6db1cbc1ec5c/python/cpython/pull/106816
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5cd280594e6b87a87e47d36693f7318c4b988fd6be73c8ff458f6db1cbc1ec5c/python/cpython/pull/106816
og:image:altFollowing the suggestion from this comment in the original issue this PR adds a new function _Py_normpathAndSize which behaves like _Py_normpath but also takes a pointer which it will use to store ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefinnagin
hostnamegithub.com
expected-hostnamegithub.com
None4c92a536c69af79290536ba65c054743bf2747e6bf7150d78fe0e566af9ac459
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb8eaa813b53afacb4b93991504272e5396731873
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/106816/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F106816%2Fcommits
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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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%2F106816%2Fcommits
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%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/106816/commits
Reloadhttps://github.com/python/cpython/pull/106816/commits
Reloadhttps://github.com/python/cpython/pull/106816/commits
Please reload this pagehttps://github.com/python/cpython/pull/106816/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/106816/commits
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k 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.4k 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
zoobahttps://github.com/zooba
python:mainhttps://github.com/python/cpython/tree/main
finnagin:106242https://github.com/finnagin/cpython/tree/106242
Conversationhttps://github.com/python/cpython/pull/106816
Commits27 (27)https://github.com/python/cpython/pull/106816/commits
Checkshttps://github.com/python/cpython/pull/106816/checks
Files changedhttps://github.com/python/cpython/pull/106816/files
gh-106242: Fix path truncation in normpathhttps://github.com/python/cpython/pull/106816/commits#top
zoobahttps://github.com/zooba
python:mainhttps://github.com/python/cpython/tree/main
finnagin:106242https://github.com/finnagin/cpython/tree/106242
added _Py_normpathAndSizehttps://github.com/python/cpython/pull/106816/commits/d1fe8fade29a3bf60a2b57af83f18e94f1fd5b48
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
d1fe8fahttps://github.com/python/cpython/pull/106816/commits/d1fe8fade29a3bf60a2b57af83f18e94f1fd5b48
https://github.com/python/cpython/tree/d1fe8fade29a3bf60a2b57af83f18e94f1fd5b48
Merge remote-tracking branch 'upstream/main' into 106242https://github.com/python/cpython/pull/106816/commits/726da048d4c8bbdcf332fe43d6c41a232337b66f
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
726da04https://github.com/python/cpython/pull/106816/commits/726da048d4c8bbdcf332fe43d6c41a232337b66f
https://github.com/python/cpython/tree/726da048d4c8bbdcf332fe43d6c41a232337b66f
PyAPI_FUNC -> externhttps://github.com/python/cpython/pull/106816/commits/8cab42c5cca34c5c272e9f0dd7704a6b9a580eac
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
8cab42chttps://github.com/python/cpython/pull/106816/commits/8cab42c5cca34c5c272e9f0dd7704a6b9a580eac
https://github.com/python/cpython/tree/8cab42c5cca34c5c272e9f0dd7704a6b9a580eac
remove prinfshttps://github.com/python/cpython/pull/106816/commits/82a9d360a248a26dff340113db5a3b40407ed7ed
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
82a9d36https://github.com/python/cpython/pull/106816/commits/82a9d360a248a26dff340113db5a3b40407ed7ed
https://github.com/python/cpython/tree/82a9d360a248a26dff340113db5a3b40407ed7ed
fix length calculationhttps://github.com/python/cpython/pull/106816/commits/6c18bf8d10b8688c05ab2c0b98e4a5b8e116f91a
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
6c18bf8https://github.com/python/cpython/pull/106816/commits/6c18bf8d10b8688c05ab2c0b98e4a5b8e116f91a
https://github.com/python/cpython/tree/6c18bf8d10b8688c05ab2c0b98e4a5b8e116f91a
length -> norm_size, fix begining null char casehttps://github.com/python/cpython/pull/106816/commits/c90249de10d3ccbc6ff6f788130a4187f20ff546
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
c90249dhttps://github.com/python/cpython/pull/106816/commits/c90249de10d3ccbc6ff6f788130a4187f20ff546
https://github.com/python/cpython/tree/c90249de10d3ccbc6ff6f788130a4187f20ff546
fix norm_size calculationhttps://github.com/python/cpython/pull/106816/commits/8e1f1ea5456fd2c1796346d9dd45c1dc68000fb2
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
8e1f1eahttps://github.com/python/cpython/pull/106816/commits/8e1f1ea5456fd2c1796346d9dd45c1dc68000fb2
https://github.com/python/cpython/tree/8e1f1ea5456fd2c1796346d9dd45c1dc68000fb2
add test caseshttps://github.com/python/cpython/pull/106816/commits/30038913b66a89a42cd2348a9bfd080b2c36913d
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
3003891https://github.com/python/cpython/pull/106816/commits/30038913b66a89a42cd2348a9bfd080b2c36913d
https://github.com/python/cpython/tree/30038913b66a89a42cd2348a9bfd080b2c36913d
Merge remote-tracking branch 'upstream/main' into 106242https://github.com/python/cpython/pull/106816/commits/2fcae775becb29040fe8ee0f7e8712da6d75df9b
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
2fcae77https://github.com/python/cpython/pull/106816/commits/2fcae775becb29040fe8ee0f7e8712da6d75df9b
https://github.com/python/cpython/tree/2fcae775becb29040fe8ee0f7e8712da6d75df9b
move tests to test_genericpath.pyhttps://github.com/python/cpython/pull/106816/commits/30fa3a40c3325f2050434169465bc96793f91e17
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
30fa3a4https://github.com/python/cpython/pull/106816/commits/30fa3a40c3325f2050434169465bc96793f91e17
https://github.com/python/cpython/tree/30fa3a40c3325f2050434169465bc96793f91e17
handle edge caseshttps://github.com/python/cpython/pull/106816/commits/f0afe44906c9a2dce62e580480fa349a0c6ed71a
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
f0afe44https://github.com/python/cpython/pull/106816/commits/f0afe44906c9a2dce62e580480fa349a0c6ed71a
https://github.com/python/cpython/tree/f0afe44906c9a2dce62e580480fa349a0c6ed71a
decrement p2 when == minp2 & update minp2 handling with leading ./https://github.com/python/cpython/pull/106816/commits/641290104d332aa29e18866233bf612a3dffdce1
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
6412901https://github.com/python/cpython/pull/106816/commits/641290104d332aa29e18866233bf612a3dffdce1
https://github.com/python/cpython/tree/641290104d332aa29e18866233bf612a3dffdce1
change test case to no longer include null characterhttps://github.com/python/cpython/pull/106816/commits/78192de7abce32052a44068b24bda53dadf91ec5
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
78192dehttps://github.com/python/cpython/pull/106816/commits/78192de7abce32052a44068b24bda53dadf91ec5
https://github.com/python/cpython/tree/78192de7abce32052a44068b24bda53dadf91ec5
Merge remote-tracking branch 'upstream/main' into 106242https://github.com/python/cpython/pull/106816/commits/199abac9b1bd6737df6b7d202ffdbf50728a9c50
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
199abachttps://github.com/python/cpython/pull/106816/commits/199abac9b1bd6737df6b7d202ffdbf50728a9c50
https://github.com/python/cpython/tree/199abac9b1bd6737df6b7d202ffdbf50728a9c50
Merge branch 'python:main' into 106242https://github.com/python/cpython/pull/106816/commits/cbe57c47f71063ffc3926d0a91fd6191c78cd224
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
cbe57c4https://github.com/python/cpython/pull/106816/commits/cbe57c47f71063ffc3926d0a91fd6191c78cd224
https://github.com/python/cpython/tree/cbe57c47f71063ffc3926d0a91fd6191c78cd224
Add norm_size variable description, add normpath descriptionhttps://github.com/python/cpython/pull/106816/commits/4b9de2cacb35d55aef4cbbdb6a34e364cf583aaf
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
4b9de2chttps://github.com/python/cpython/pull/106816/commits/4b9de2cacb35d55aef4cbbdb6a34e364cf583aaf
https://github.com/python/cpython/tree/4b9de2cacb35d55aef4cbbdb6a34e364cf583aaf
update normpathAndSize descriptionhttps://github.com/python/cpython/pull/106816/commits/f1731f1f093a951d587cfbacba71c2b405141480
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
f1731f1https://github.com/python/cpython/pull/106816/commits/f1731f1f093a951d587cfbacba71c2b405141480
https://github.com/python/cpython/tree/f1731f1f093a951d587cfbacba71c2b405141480
norm_size->normsizehttps://github.com/python/cpython/pull/106816/commits/d7f70457dc51973ffb47dd653c0c221085f00ca0
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
d7f7045https://github.com/python/cpython/pull/106816/commits/d7f70457dc51973ffb47dd653c0c221085f00ca0
https://github.com/python/cpython/tree/d7f70457dc51973ffb47dd653c0c221085f00ca0
Merge remote-tracking branch 'upstream/main' into 106242https://github.com/python/cpython/pull/106816/commits/184fde9a960af02ab702a9f8be23bd91f4c9e266
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
184fde9https://github.com/python/cpython/pull/106816/commits/184fde9a960af02ab702a9f8be23bd91f4c9e266
https://github.com/python/cpython/tree/184fde9a960af02ab702a9f8be23bd91f4c9e266
remove trailing whitespacehttps://github.com/python/cpython/pull/106816/commits/9e0d52a25182691497a0522b5402574ad811bd5b
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
9e0d52ahttps://github.com/python/cpython/pull/106816/commits/9e0d52a25182691497a0522b5402574ad811bd5b
https://github.com/python/cpython/tree/9e0d52a25182691497a0522b5402574ad811bd5b
Merge remote-tracking branch 'upstream/main' into 106242https://github.com/python/cpython/pull/106816/commits/38159671a256908eafb6a7c06e3f4dabbb4cbe5a
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
3815967https://github.com/python/cpython/pull/106816/commits/38159671a256908eafb6a7c06e3f4dabbb4cbe5a
https://github.com/python/cpython/tree/38159671a256908eafb6a7c06e3f4dabbb4cbe5a
Merge branch 'python:main' into 106242https://github.com/python/cpython/pull/106816/commits/d9d78cc2071ee4d161e81fe217ff5600b35fcc13
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
d9d78cchttps://github.com/python/cpython/pull/106816/commits/d9d78cc2071ee4d161e81fe217ff5600b35fcc13
https://github.com/python/cpython/tree/d9d78cc2071ee4d161e81fe217ff5600b35fcc13
_Py_normpathAndSize -> _Py_normpath_and_sizehttps://github.com/python/cpython/pull/106816/commits/3ef9e3b1e12f316fd5b04f536486db882d19149b
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
3ef9e3bhttps://github.com/python/cpython/pull/106816/commits/3ef9e3b1e12f316fd5b04f536486db882d19149b
https://github.com/python/cpython/tree/3ef9e3b1e12f316fd5b04f536486db882d19149b
revert test_addpackage_import_bad_pth_file changehttps://github.com/python/cpython/pull/106816/commits/c885d13975ec9fefdb2ae34d5ea63184cd28ea87
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
c885d13https://github.com/python/cpython/pull/106816/commits/c885d13975ec9fefdb2ae34d5ea63184cd28ea87
https://github.com/python/cpython/tree/c885d13975ec9fefdb2ae34d5ea63184cd28ea87
merge upstream/main, fix merge conflictshttps://github.com/python/cpython/pull/106816/commits/d896d45a540a420e5082a073030917b510f83f5b
https://github.com/finnagin
finnaginhttps://github.com/python/cpython/commits?author=finnagin
d896d45https://github.com/python/cpython/pull/106816/commits/d896d45a540a420e5082a073030917b510f83f5b
https://github.com/python/cpython/tree/d896d45a540a420e5082a073030917b510f83f5b
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/106816/commits/0959e2b56e2814afe7e630275e1ab2fdf56809d4
https://github.com/apps/blurb-it
blurb-it[bot]https://github.com/python/cpython/commits?author=blurb-it%5Bbot%5D
0959e2bhttps://github.com/python/cpython/pull/106816/commits/0959e2b56e2814afe7e630275e1ab2fdf56809d4
https://github.com/python/cpython/tree/0959e2b56e2814afe7e630275e1ab2fdf56809d4
Update Misc/NEWS.d/next/Library/2023-08-14-23-11-11.gh-issue-106242.71HMym.rsthttps://github.com/python/cpython/pull/106816/commits/aecae846fff0a15585178d61cdc44cae1b91bb76
finnaginhttps://github.com/python/cpython/commits?author=finnagin
zoobahttps://github.com/python/cpython/commits?author=zooba
aecae84https://github.com/python/cpython/pull/106816/commits/aecae846fff0a15585178d61cdc44cae1b91bb76
https://github.com/python/cpython/tree/aecae846fff0a15585178d61cdc44cae1b91bb76
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.