From: Arvid R. <re...@un...> - 2010-03-12 13:14:20
|
Hello, we had a problem with ldap.dn.str2dn showing instable behavior and throwing ldap.DECODING_ERROR in python2.4 Debian Lenny (amd64). It seems that using PyArg_ParseTuple with format string "z#" and saving the length of the string directly into the berval member bv_len does not store a correct value, which in turn causes the problem in ldap_bv2dn. It seems that str2dn is the only location in python-ldap (2.3.5) where this technique is used, and the problems seems to affect only amd64 and might be caused by a leak in the PyArg_ParseTuple routine of python2.4. The attached patch solved the problem for us. Cheers, Arvid -- Arvid Requate Open Source Software Engineer Univention GmbH Linux for your business Mary-Somerville-Str.1 28359 Bremen Tel. : +49 421 22232-0 Fax : +49 421 22232-99 re...@un... http://www.univention.de Geschäftsführer: Peter H. Ganten HRB 20755 Amtsgericht Bremen Steuer-Nr.: 71-597-02876 |