Segfault in python-ldap

Michael Ströder michael at stroeder.com
Fri Aug 16 16:14:35 CEST 2002


Peter Hawkins wrote:
> 
> This bug has been sitting in our BTS for a while:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=76722&repeatmerged=yes
> 
> ---  SNIP ---
> This piece of code might not be correct but it certainly should not
> make python segfault:

Yepp, python-ldap should not crash.

> --- python-ldap-2.0.0pre04/Modules/LDAPObject.c	Sat Feb  2 22:47:00 2002
> +++ python-ldap-2.0.0pre04-new2/Modules/LDAPObject.c	Tue Jul  2 22:09:26 2002

I've applied the patch you provided to my local working tree. It 
works. Thanks for submitting it.

Well, this is not a complete solution for this kind of problems. 
Maybe assertion statements in each method of 
ldap.ldapobject.LDAPObject could be of better help here...

Ciao, Michael.






More information about the python-ldap mailing list