Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ber_scanf() and ber_printf() "i" format uses ber_int_t. lber_types.h
defines the type as int but Python code assumes the type to be unsigned
long:
#define LBER_INT_T int
typedef LBER_INT_T ber_int_t;
The code was working fine on little endian machines but broke on big
endian machines. ber_int_t is now correctly parsed as signed int.
https://github.com/python-ldap/python-ldap/pull/162
Fixes: https://github.com/python-ldap/python-ldap/issues/161
Signed-off-by: Christian Heimes <cheimes@redhat.com>- Loading branch information