René's URL Explorer Experiment


Title: Fix segfault in internal function _ldap.str2dn by tiran · Pull Request #550 · python-ldap/python-ldap · GitHub

Open Graph Title: Fix segfault in internal function _ldap.str2dn by tiran · Pull Request #550 · python-ldap/python-ldap

X Title: Fix segfault in internal function _ldap.str2dn by tiran · Pull Request #550 · python-ldap/python-ldap

Description: l_ldap_str2dn crashes with a NULL pointer deref when an empty string or None is passed in. ldap_bv2dn returns success with NULL dn for an empty berval struct. In debug builds, ldap_bv2dn fails with an assertion error. The function now returns an empty list for an empty input. Note: The public API of python-ldap is not affected. The wrapper ldap.dn.str2dn does not pass an empty string to the low-level function. Fixes: #549

Open Graph Description: l_ldap_str2dn crashes with a NULL pointer deref when an empty string or None is passed in. ldap_bv2dn returns success with NULL dn for an empty berval struct. In debug builds, ldap_bv2dn fails with...

X Description: l_ldap_str2dn crashes with a NULL pointer deref when an empty string or None is passed in. ldap_bv2dn returns success with NULL dn for an empty berval struct. In debug builds, ldap_bv2dn fails with...

Opengraph URL: https://github.com/python-ldap/python-ldap/pull/550

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d806ac53-2026-697a-aac8-dcde84763c2b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA7E2:2C8617:2C58E8D:390A77C:69760512
html-safe-nonce3ab3029d4c18b2575211025c1985da8596efb0cfa320a44c1c756996fd171652
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0UyOjJDODYxNzoyQzU4RThEOjM5MEE3N0M6Njk3NjA1MTIiLCJ2aXNpdG9yX2lkIjoiOTE5NDI5MDYxMzE5OTQzOTEyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4d07f164b39e42d7315ebe7cda2661e9c24f5f6ebc65d1eee7bd0287b0289cb6
hovercard-subject-tagpull_request:1601965063
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-ldap/python-ldap/pull/550/files
twitter:imagehttps://avatars.githubusercontent.com/u/444071?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/444071?s=400&v=4
og:image:altl_ldap_str2dn crashes with a NULL pointer deref when an empty string or None is passed in. ldap_bv2dn returns success with NULL dn for an empty berval struct. In debug builds, ldap_bv2dn fails with...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonec6814b4cc7afd45cd6e64525d0cff0e76dd802f315a5b0e55a7abda1d1d070d0
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python-ldap/python-ldap git https://github.com/python-ldap/python-ldap.git
octolytics-dimension-user_id33895877
octolytics-dimension-user_loginpython-ldap
octolytics-dimension-repository_id111794776
octolytics-dimension-repository_nwopython-ldap/python-ldap
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id111794776
octolytics-dimension-repository_network_root_nwopython-ldap/python-ldap
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
release4ea235bfed58ef16c8a5642b3ac64b74f10c9f52
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-ldap%2Fpython-ldap%2Fpull%2F550%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-ldap%2Fpython-ldap%2Fpull%2F550%2Ffiles
Sign up https://patch-diff.githubusercontent.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-ldap%2Fpython-ldap
Reloadhttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/files
Reloadhttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/files
Reloadhttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/files
python-ldap https://patch-diff.githubusercontent.com/python-ldap
python-ldaphttps://patch-diff.githubusercontent.com/python-ldap/python-ldap
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-ldap%2Fpython-ldap
Fork 137 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-ldap%2Fpython-ldap
Star 436 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-ldap%2Fpython-ldap
Code https://patch-diff.githubusercontent.com/python-ldap/python-ldap
Issues 83 https://patch-diff.githubusercontent.com/python-ldap/python-ldap/issues
Pull requests 19 https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pulls
Actions https://patch-diff.githubusercontent.com/python-ldap/python-ldap/actions
Projects 0 https://patch-diff.githubusercontent.com/python-ldap/python-ldap/projects
Security 3 https://patch-diff.githubusercontent.com/python-ldap/python-ldap/security
Insights https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pulse
Code https://patch-diff.githubusercontent.com/python-ldap/python-ldap
Issues https://patch-diff.githubusercontent.com/python-ldap/python-ldap/issues
Pull requests https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pulls
Actions https://patch-diff.githubusercontent.com/python-ldap/python-ldap/actions
Projects https://patch-diff.githubusercontent.com/python-ldap/python-ldap/projects
Security https://patch-diff.githubusercontent.com/python-ldap/python-ldap/security
Insights https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fpython-ldap%2Fpython-ldap%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fpython-ldap%2Fpython-ldap%2Fissues%2Fnew%2Fchoose
tiranhttps://patch-diff.githubusercontent.com/tiran
python-ldap:mainhttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/tree/main
tiran:str2dn-segfaulthttps://patch-diff.githubusercontent.com/tiran/python-ldap/tree/str2dn-segfault
Conversation 5 https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550
Commits 1 https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/commits
Checks 0 https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/checks
Files changed https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/files
Please reload this pagehttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/files
Fix segfault in internal function _ldap.str2dn https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/files#top
Show all changes 1 commit https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/files
f4f0cba Fix segfault in internal function _ldap.str2dn tiran Nov 15, 2023 https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/commits/f4f0cbae196f2e81829a6ae54e8afed6f957a390
Clear filters https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/files
Please reload this pagehttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/files
Please reload this pagehttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/files
functions.c https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/files#diff-5d38264092ec111b62ab3a83acd523c5455f6d162356cc4c163c2374425f3aca
t_cext.py https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/files#diff-cd3939eebf9f0f9e01b0cc40a337c6493e72c4f17408c93dfd2d578e2fea379f
Modules/functions.chttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/files#diff-5d38264092ec111b62ab3a83acd523c5455f6d162356cc4c163c2374425f3aca
View file https://patch-diff.githubusercontent.com/python-ldap/python-ldap/blob/f4f0cbae196f2e81829a6ae54e8afed6f957a390/Modules/functions.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/files#diff-5d38264092ec111b62ab3a83acd523c5455f6d162356cc4c163c2374425f3aca
https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/files#diff-5d38264092ec111b62ab3a83acd523c5455f6d162356cc4c163c2374425f3aca
Tests/t_cext.pyhttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/files#diff-cd3939eebf9f0f9e01b0cc40a337c6493e72c4f17408c93dfd2d578e2fea379f
View file https://patch-diff.githubusercontent.com/python-ldap/python-ldap/blob/f4f0cbae196f2e81829a6ae54e8afed6f957a390/Tests/t_cext.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pull/550/files#diff-cd3939eebf9f0f9e01b0cc40a337c6493e72c4f17408c93dfd2d578e2fea379f
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.