Title: LDAPObject.search_ext: Memory errors when providing dictionary · Issue #556 · python-ldap/python-ldap · GitHub
Open Graph Title: LDAPObject.search_ext: Memory errors when providing dictionary · Issue #556 · python-ldap/python-ldap
X Title: LDAPObject.search_ext: Memory errors when providing dictionary · Issue #556 · python-ldap/python-ldap
Description: Issue description: When using LDAPObject.search_ext and passing iterables via the attrlist argument the call can fail with a segmentation fault or other types of memory errors. Steps to reproduce: With a locally running slapd: import lda...
Open Graph Description: Issue description: When using LDAPObject.search_ext and passing iterables via the attrlist argument the call can fail with a segmentation fault or other types of memory errors. Steps to reproduce: ...
X Description: Issue description: When using LDAPObject.search_ext and passing iterables via the attrlist argument the call can fail with a segmentation fault or other types of memory errors. Steps to reproduce: ...
Opengraph URL: https://github.com/python-ldap/python-ldap/issues/556
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"LDAPObject.search_ext: Memory errors when providing dictionary ","articleBody":"Issue description:\r\n\r\nWhen using [LDAPObject.search_ext](https://www.python-ldap.org/en/python-ldap-3.4.3/reference/ldap.html#ldap.LDAPObject.search_ext) and passing iterables via the `attrlist` argument the call can fail with a segmentation fault or other types of memory errors.\r\n\r\nSteps to reproduce: \r\n\r\nWith a locally running slapd:\r\n\r\n```python\r\nimport ldap\r\nl = ldap.initialize(\"ldap://localhost\")\r\nl.simple_bind_s(\"cn=admin,dc=nodomain\",\"admin\")\r\nl.search_s(\"o=My Organisation, c=AU\", ldap.SCOPE_SUBTREE, \"objectclass=*\", attrlist={\"1\":2})\r\n```\r\nThis may result in \r\n\r\n```\r\nSegmentation fault (core dumped)\r\n```\r\n\r\nor\r\n\r\n```\r\nfree(): invalid pointer\r\nAborted (core dumped)\r\n```\r\nor another memory related program abortion. \r\n\r\nOperating system:\r\n\r\n```\r\nDistributor ID:\tUbuntu\r\nDescription:\tUbuntu 23.04\r\nRelease:\t23.04\r\nCodename:\tlunar\r\n\r\nbookworm/sid\r\n```\r\n\r\nPython version:\r\n\r\nTested with 3.7, 3.10, 3.11\r\n\r\npython-ldap version: \r\n\r\n3.4.4 and latest (ac5d051)\r\n\r\nSee https://github.com/python-ldap/python-ldap/pull/555\r\n","author":{"url":"https://github.com/jkoeniger","@type":"Person","name":"jkoeniger"},"datePublished":"2024-01-07T10:03:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/556/python-ldap/issues/556"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4a57e8a7-8f06-4772-c536-39c65447d7f7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A666:754E3:16A6E71:1CE48CB:6975C1E0 |
| html-safe-nonce | c1aacd7cf61ee21c63e5686d290c9959fbed326a714199544bbf07eb0e29088c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjY2Ojc1NEUzOjE2QTZFNzE6MUNFNDhDQjo2OTc1QzFFMCIsInZpc2l0b3JfaWQiOiI0NTg3MDgyNDAzMTIwNzkyMDMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 161f94539e6b7f8e7d8ff49baf63ae818c5bfbe9dca49b67921c1b5ad5a611c2 |
| hovercard-subject-tag | issue:2069066806 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-ldap/python-ldap/556/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2b972c07fc77deac75492ce59018b1e2353e020d00c102a957fb47af9ef5b83a/python-ldap/python-ldap/issues/556 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2b972c07fc77deac75492ce59018b1e2353e020d00c102a957fb47af9ef5b83a/python-ldap/python-ldap/issues/556 |
| og:image:alt | Issue description: When using LDAPObject.search_ext and passing iterables via the attrlist argument the call can fail with a segmentation fault or other types of memory errors. Steps to reproduce: ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jkoeniger |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/python-ldap/python-ldap git https://github.com/python-ldap/python-ldap.git |
| octolytics-dimension-user_id | 33895877 |
| octolytics-dimension-user_login | python-ldap |
| octolytics-dimension-repository_id | 111794776 |
| octolytics-dimension-repository_nwo | python-ldap/python-ldap |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 111794776 |
| octolytics-dimension-repository_network_root_nwo | python-ldap/python-ldap |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width