René's URL Explorer Experiment


Title: _ldap.str2dn() segfaults when called with empty string · Issue #549 · python-ldap/python-ldap · GitHub

Open Graph Title: _ldap.str2dn() segfaults when called with empty string · Issue #549 · python-ldap/python-ldap

X Title: _ldap.str2dn() segfaults when called with empty string · Issue #549 · python-ldap/python-ldap

Description: Issue description: _ldap.str2dn segfaults with a NULL pointer deref when called with an empty string as argument. ldap_bv2dn return success for an empty string and sets dn pointer to NULL. Debug builds of OpenLDAP fail with an assertion ...

Open Graph Description: Issue description: _ldap.str2dn segfaults with a NULL pointer deref when called with an empty string as argument. ldap_bv2dn return success for an empty string and sets dn pointer to NULL. Debug bu...

X Description: Issue description: _ldap.str2dn segfaults with a NULL pointer deref when called with an empty string as argument. ldap_bv2dn return success for an empty string and sets dn pointer to NULL. Debug bu...

Opengraph URL: https://github.com/python-ldap/python-ldap/issues/549

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"_ldap.str2dn() segfaults when called with empty string","articleBody":"Issue description:\r\n\r\n`_ldap.str2dn` segfaults with a NULL pointer deref when called with an empty string as argument. `ldap_bv2dn` return success for an empty string and sets `dn` pointer to NULL. Debug builds of OpenLDAP fail with an assertion error `getdn.c:710: ldap_bv2dn_x: Assertion bvin-\u003ebv_val != NULL failed.`. Our code does not handle NULL `dn` and empty string correctly. Fix is trivial.\r\n\r\n```\r\n\u003e\u003e\u003e _ldap.str2dn(\"\")\r\n\r\nProgram received signal SIGSEGV, Segmentation fault.\r\nl_ldap_str2dn (unused=\u003coptimized out\u003e, args=\u003coptimized out\u003e) at Modules/functions.c:118\r\nDownloading source file /usr/src/debug/python-ldap-3.4.3-2.fc38.x86_64/Modules/functions.c\r\n118         for (i = 0; dn[i]; i++) {                                                                                                                            \r\n(gdb) bt\r\n#0  l_ldap_str2dn (unused=\u003coptimized out\u003e, args=\u003coptimized out\u003e) at Modules/functions.c:118\r\n#1  0x00007ffff7bcef08 in cfunction_call (func=0x7fffe9e2f240, args=\u003coptimized out\u003e, kwargs=\u003coptimized out\u003e)\r\n    at /usr/src/debug/python3.11-3.11.6-1.fc38.x86_64/Objects/methodobject.c:553\r\n#2  0x00007ffff7bb2173 in _PyObject_MakeTpCall (tstate=0x7ffff7f10538 \u003c_PyRuntime+166328\u003e, callable=0x7fffe9e2f240, args=\u003coptimized out\u003e, nargs=1, \r\n    keywords=\u003coptimized out\u003e) at /usr/src/debug/python3.11-3.11.6-1.fc38.x86_64/Objects/call.c:214\r\n#3  0x00007ffff7bba996 in _PyEval_EvalFrameDefault (tstate=\u003coptimized out\u003e, frame=\u003coptimized out\u003e, throwflag=\u003coptimized out\u003e)\r\n    at /usr/src/debug/python3.11-3.11.6-1.fc38.x86_64/Python/ceval.c:4760\r\n#4  0x00007ffff7bb6bba in _PyEval_EvalFrame (throwflag=0, frame=0x7ffff763d020, tstate=0x7ffff7f10538 \u003c_PyRuntime+166328\u003e)\r\n    at /usr/src/debug/python3.11-3.11.6-1.fc38.x86_64/Include/internal/pycore_ceval.h:73\r\n#5  _PyEval_Vector (tstate=tstate@entry=0x7ffff7f10538 \u003c_PyRuntime+166328\u003e, func=func@entry=0x7fffe9f8c540, locals=locals@entry=0x7ffff773b200, \r\n    args=args@entry=0x0, argcount=argcount@entry=0, kwnames=kwnames@entry=0x0) at /usr/src/debug/python3.11-3.11.6-1.fc38.x86_64/Python/ceval.c:6425\r\n#6  0x00007ffff7c3b15c in PyEval_EvalCode (co=0x7fffe9d9fb40, globals=\u003coptimized out\u003e, locals=0x7ffff773b200)\r\n    at /usr/src/debug/python3.11-3.11.6-1.fc38.x86_64/Python/ceval.c:1140\r\n#7  0x00007ffff7c58413 in run_eval_code_obj (tstate=tstate@entry=0x7ffff7f10538 \u003c_PyRuntime+166328\u003e, co=co@entry=0x7fffe9d9fb40, \r\n    globals=globals@entry=0x7ffff773b200, locals=locals@entry=0x7ffff773b200) at /usr/src/debug/python3.11-3.11.6-1.fc38.x86_64/Python/pythonrun.c:1710\r\n#8  0x00007ffff7c54a7a in run_mod (mod=mod@entry=0x55555572eba8, filename=filename@entry=0x7ffff76ec230, globals=0x7ffff773b200, locals=0x7ffff773b200, \r\n    flags=flags@entry=0x7fffffffd068, arena=arena@entry=0x7ffff765f990) at /usr/src/debug/python3.11-3.11.6-1.fc38.x86_64/Python/pythonrun.c:1731\r\n#9  0x00007ffff7b99732 in PyRun_InteractiveOneObjectEx (fp=fp@entry=0x7ffff79f6aa0 \u003c_IO_2_1_stdin_\u003e, filename=filename@entry=0x7ffff76ec230, \r\n    flags=flags@entry=0x7fffffffd068) at /usr/src/debug/python3.11-3.11.6-1.fc38.x86_64/Python/pythonrun.c:261\r\n#10 0x00007ffff7b998d2 in _PyRun_InteractiveLoopObject (fp=0x7ffff79f6aa0 \u003c_IO_2_1_stdin_\u003e, filename=0x7ffff76ec230, flags=0x7fffffffd068)\r\n    at /usr/src/debug/python3.11-3.11.6-1.fc38.x86_64/Python/pythonrun.c:138\r\n#11 0x00007ffff7b2688b in _PyRun_AnyFileObject (fp=0x7ffff79f6aa0 \u003c_IO_2_1_stdin_\u003e, filename=0x7ffff76ec230, closeit=0, flags=0x7fffffffd068)\r\n    at /usr/src/debug/python3.11-3.11.6-1.fc38.x86_64/Python/pythonrun.c:73\r\n#12 0x00007ffff7b99a4f in PyRun_AnyFileExFlags (fp=0x7ffff79f6aa0 \u003c_IO_2_1_stdin_\u003e, filename=\u003coptimized out\u003e, closeit=0, flags=0x7fffffffd068)\r\n    at /usr/src/debug/python3.11-3.11.6-1.fc38.x86_64/Python/pythonrun.c:105\r\n#13 0x00007ffff7b22793 in pymain_run_stdin (config=0x7ffff7ef6580 \u003c_PyRuntime+59904\u003e) at /usr/src/debug/python3.11-3.11.6-1.fc38.x86_64/Modules/main.c:509\r\n#14 pymain_run_python (exitcode=0x7fffffffd060) at /usr/src/debug/python3.11-3.11.6-1.fc38.x86_64/Modules/main.c:604\r\n#15 Py_RunMain () at /usr/src/debug/python3.11-3.11.6-1.fc38.x86_64/Modules/main.c:680\r\n#16 0x00007ffff7c2b48b in Py_BytesMain (argc=\u003coptimized out\u003e, argv=\u003coptimized out\u003e) at /usr/src/debug/python3.11-3.11.6-1.fc38.x86_64/Modules/main.c:734\r\n#17 0x00007ffff7849b8a in __libc_start_call_main (main=main@entry=0x555555555160 \u003cmain\u003e, argc=argc@entry=1, argv=argv@entry=0x7fffffffd2c8)\r\n    at ../sysdeps/nptl/libc_start_call_main.h:58\r\n#18 0x00007ffff7849c4b in __libc_start_main_impl (main=0x555555555160 \u003cmain\u003e, argc=1, argv=0x7fffffffd2c8, init=\u003coptimized out\u003e, fini=\u003coptimized out\u003e, \r\n    rtld_fini=\u003coptimized out\u003e, stack_end=0x7fffffffd2b8) at ../csu/libc-start.c:360\r\n#19 0x0000555555555095 in _start ()\r\n(gdb) p dn\r\n$1 = (LDAPDN) 0x0\r\n```\r\n\r\n\r\n\r\n\r\nSteps to reproduce: \r\n\r\n```\r\nimport _ldap\r\n_ldap.str2dn(\"\")\r\n```\r\n\r\n\r\nOperating system: \r\nany\r\n\r\nPython version: \r\nany\r\n\r\npython-ldap version: \r\n3.4.3","author":{"url":"https://github.com/tiran","@type":"Person","name":"tiran"},"datePublished":"2023-11-15T06:00:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/549/python-ldap/issues/549"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d2c2d764-31c1-852e-24d8-5f107c482e16
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id82C4:242157:44ADDD4:59D150D:6974EA18
html-safe-noncea8f3f48bedc35e90f9e298fd2045cba667a5d73d18cf57fe3ab03d6aea3abc20
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkM0OjI0MjE1Nzo0NEFEREQ0OjU5RDE1MEQ6Njk3NEVBMTgiLCJ2aXNpdG9yX2lkIjoiODIyODM2NTkyODc1NjQ3MjM0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac964f843b273ca89cd066147700b9b076b888f6f5b911e1097f3504683d1a2bb7
hovercard-subject-tagissue:1994103828
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-ldap/python-ldap/549/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d6ad1348aa350619bd46d217fbd4fccfc1678a33cfb1d3b38f621031ef2547a9/python-ldap/python-ldap/issues/549
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d6ad1348aa350619bd46d217fbd4fccfc1678a33cfb1d3b38f621031ef2547a9/python-ldap/python-ldap/issues/549
og:image:altIssue description: _ldap.str2dn segfaults with a NULL pointer deref when called with an empty string as argument. ldap_bv2dn return success for an empty string and sets dn pointer to NULL. Debug bu...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametiran
hostnamegithub.com
expected-hostnamegithub.com
None4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release488b30e96dfd057fbbe44c6665ccbc030b729dde
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-ldap/python-ldap/issues/549#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-ldap%2Fpython-ldap%2Fissues%2F549
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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-ldap%2Fpython-ldap%2Fissues%2F549
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%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-ldap%2Fpython-ldap
Reloadhttps://github.com/python-ldap/python-ldap/issues/549
Reloadhttps://github.com/python-ldap/python-ldap/issues/549
Reloadhttps://github.com/python-ldap/python-ldap/issues/549
python-ldap https://github.com/python-ldap
python-ldaphttps://github.com/python-ldap/python-ldap
Notifications https://github.com/login?return_to=%2Fpython-ldap%2Fpython-ldap
Fork 137 https://github.com/login?return_to=%2Fpython-ldap%2Fpython-ldap
Star 436 https://github.com/login?return_to=%2Fpython-ldap%2Fpython-ldap
Code https://github.com/python-ldap/python-ldap
Issues 83 https://github.com/python-ldap/python-ldap/issues
Pull requests 19 https://github.com/python-ldap/python-ldap/pulls
Actions https://github.com/python-ldap/python-ldap/actions
Projects 0 https://github.com/python-ldap/python-ldap/projects
Security 3 https://github.com/python-ldap/python-ldap/security
Insights https://github.com/python-ldap/python-ldap/pulse
Code https://github.com/python-ldap/python-ldap
Issues https://github.com/python-ldap/python-ldap/issues
Pull requests https://github.com/python-ldap/python-ldap/pulls
Actions https://github.com/python-ldap/python-ldap/actions
Projects https://github.com/python-ldap/python-ldap/projects
Security https://github.com/python-ldap/python-ldap/security
Insights https://github.com/python-ldap/python-ldap/pulse
New issuehttps://github.com/login?return_to=https://github.com/python-ldap/python-ldap/issues/549
New issuehttps://github.com/login?return_to=https://github.com/python-ldap/python-ldap/issues/549
#550https://github.com/python-ldap/python-ldap/pull/550
_ldap.str2dn() segfaults when called with empty stringhttps://github.com/python-ldap/python-ldap/issues/549#top
#550https://github.com/python-ldap/python-ldap/pull/550
https://github.com/tiran
https://github.com/tiran
tiranhttps://github.com/tiran
on Nov 15, 2023https://github.com/python-ldap/python-ldap/issues/549#issue-1994103828
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.