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
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d806ac53-2026-697a-aac8-dcde84763c2b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A7E2:2C8617:2C58E8D:390A77C:69760512 |
| html-safe-nonce | 3ab3029d4c18b2575211025c1985da8596efb0cfa320a44c1c756996fd171652 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0UyOjJDODYxNzoyQzU4RThEOjM5MEE3N0M6Njk3NjA1MTIiLCJ2aXNpdG9yX2lkIjoiOTE5NDI5MDYxMzE5OTQzOTEyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4d07f164b39e42d7315ebe7cda2661e9c24f5f6ebc65d1eee7bd0287b0289cb6 |
| hovercard-subject-tag | pull_request:1601965063 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python-ldap/python-ldap/pull/550/files |
| twitter:image | https://avatars.githubusercontent.com/u/444071?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/444071?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6814b4cc7afd45cd6e64525d0cff0e76dd802f315a5b0e55a7abda1d1d070d0 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4ea235bfed58ef16c8a5642b3ac64b74f10c9f52 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width