René's URL Explorer Experiment


Title: gh-137335: Remove use of ``mktemp()`` in ``asyncio.windows_utils`` by lighting9999 · Pull Request #137333 · python/cpython · GitHub

Open Graph Title: gh-137335: Remove use of ``mktemp()`` in ``asyncio.windows_utils`` by lighting9999 · Pull Request #137333 · python/cpython

X Title: gh-137335: Remove use of ``mktemp()`` in ``asyncio.windows_utils`` by lighting9999 · Pull Request #137333 · python/cpython

Description: matemp() function is unsafe,so I use safety function. bandit tool: Issue: [B306:blacklist] Use of insecure and deprecated function (mktemp). Severity: Medium Confidence: High CWE: CWE-377 (https://cwe.mitre.org/data/definitions/377.html) More Info: https://bandit.readthedocs.io/en/1.8.6/blacklists/blacklist_calls.html#b306-mktemp-q Location: C:\Users\Administrator\Desktop\cpython\lib\asyncio\windows_utils.py:34:14 33 """Like os.pipe() but with overlapped support and using handles not fds.""" 34 address = tempfile.mktemp( 35 prefix=r'\.\pipe\python-pipe-{:d}-{:d}-'.format( 36 os.getpid(), next(_mmap_counter))) 37 Issue: gh-137335

Open Graph Description: matemp() function is unsafe,so I use safety function. bandit tool: Issue: [B306:blacklist] Use of insecure and deprecated function (mktemp). Severity: Medium Confidence: High CWE: CWE-377 (http...

X Description: matemp() function is unsafe,so I use safety function. bandit tool: Issue: [B306:blacklist] Use of insecure and deprecated function (mktemp). Severity: Medium Confidence: High CWE: CWE-377 (http...

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

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:659afeae-25e3-2b0c-9753-49e3c01bf5fd
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB490:2A98A:DCDEEC:115CE1C:6B024480
html-safe-noncea8a542708af20ec0fae59acd34af85cb259df81aebfa2d603b1cf279196c5ec5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDkwOjJBOThBOkRDREVFQzoxMTVDRTFDOjZCMDI0NDgwIiwidmlzaXRvcl9pZCI6IjI0NDAxMjQwMjUzNTIxMTEyMzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc620522d9d34e7f16c0342c6ef506439eeafb5cb64598b2f452a9dd75584fa42
hovercard-subject-tagpull_request:2715660559
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/137333/files
twitter:imagehttps://avatars.githubusercontent.com/u/120090117?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/120090117?s=400&v=4
og:image:altmatemp() function is unsafe,so I use safety function. bandit tool: Issue: [B306:blacklist] Use of insecure and deprecated function (mktemp). Severity: Medium Confidence: High CWE: CWE-377 (http...
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/137333/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F137333%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%2F137333%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/137333/files
Reloadhttps://github.com/python/cpython/pull/137333/files
Reloadhttps://github.com/python/cpython/pull/137333/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
lighting9999https://github.com/lighting9999
python:mainhttps://github.com/python/cpython/tree/main
Conversation 22 https://github.com/python/cpython/pull/137333
Commits 8 https://github.com/python/cpython/pull/137333/commits
Checks 0 https://github.com/python/cpython/pull/137333/checks
Files changed https://github.com/python/cpython/pull/137333/files
Please reload this pagehttps://github.com/python/cpython/pull/137333/files
gh-137335: Remove use of mktemp() in asyncio.windows_utils https://github.com/python/cpython/pull/137333/files#top
Show all changes 8 commits https://github.com/python/cpython/pull/137333/files
a8fff9e Deprecate mktemp() to use a safer function. lighting9999 Aug 3, 2025 https://github.com/python/cpython/pull/137333/commits/a8fff9e4546960594bf78659377e36bcfb82e754
cf5da77 fix windows_utils.py lighting9999 Aug 3, 2025 https://github.com/python/cpython/pull/137333/commits/cf5da77e582f926f805206e0e98204bdf09adce6
345f5e7 fix windows_utils.py lighting9999 Aug 3, 2025 https://github.com/python/cpython/pull/137333/commits/345f5e77a087cbb0df50e5f91988896b64011a7f
33caf80 change at tempfile.mkstemp() instead of tempfile.mktemp() lighting9999 Aug 3, 2025 https://github.com/python/cpython/pull/137333/commits/33caf807af8a2289b24fedc4d69306e502bb6f8c
2381537 Merge branch 'main' into path-1 lighting9999 Aug 3, 2025 https://github.com/python/cpython/pull/137333/commits/2381537d9136545252072690fe3461c047cbaf52
daec027 fix windows_utils.py lighting9999 Aug 3, 2025 https://github.com/python/cpython/pull/137333/commits/daec027561f8c5b3869671b72f223bfba232e430
7b2811a Update windows_utils.py lighting9999 Aug 4, 2025 https://github.com/python/cpython/pull/137333/commits/7b2811a713a523b5e34e3453d6a80614a581e567
31bdba4 📜🤖 Added by blurb_it. blurb-it[bot] Aug 4, 2025 https://github.com/python/cpython/pull/137333/commits/31bdba4910cd712165f0a47bda053d0ab3c489f7
Clear filters https://github.com/python/cpython/pull/137333/files
Please reload this pagehttps://github.com/python/cpython/pull/137333/files
Please reload this pagehttps://github.com/python/cpython/pull/137333/files
windows_utils.py https://github.com/python/cpython/pull/137333/files#diff-a95caa16983395b7ad30f3f9525cbe1c1bb11f2f710bbed6cc9759a14c2eb088
2025-08-04-00-25-48.gh-issue-137335.yRgZib.rst https://github.com/python/cpython/pull/137333/files#diff-91099747d64e7b0c39309c02b1485169ffccfd4a7332584f4b64c4bc4ae2e446
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L376
Lib/asyncio/windows_utils.pyhttps://github.com/python/cpython/pull/137333/files#diff-a95caa16983395b7ad30f3f9525cbe1c1bb11f2f710bbed6cc9759a14c2eb088
View file https://github.com/python/cpython/blob/31bdba4910cd712165f0a47bda053d0ab3c489f7/Lib/asyncio/windows_utils.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/137333/{{ revealButtonHref }}
https://github.com/python/cpython/pull/137333/files#diff-a95caa16983395b7ad30f3f9525cbe1c1bb11f2f710bbed6cc9759a14c2eb088
https://github.com/python/cpython/pull/137333/files#diff-a95caa16983395b7ad30f3f9525cbe1c1bb11f2f710bbed6cc9759a14c2eb088
https://github.com/python/cpython/pull/137333/files#diff-a95caa16983395b7ad30f3f9525cbe1c1bb11f2f710bbed6cc9759a14c2eb088
Misc/NEWS.d/next/Library/2025-08-04-00-25-48.gh-issue-137335.yRgZib.rsthttps://github.com/python/cpython/pull/137333/files#diff-91099747d64e7b0c39309c02b1485169ffccfd4a7332584f4b64c4bc4ae2e446
View file https://github.com/python/cpython/blob/31bdba4910cd712165f0a47bda053d0ab3c489f7/Misc/NEWS.d/next/Library/2025-08-04-00-25-48.gh-issue-137335.yRgZib.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/137333/{{ revealButtonHref }}
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.