[pkg-lighttpd] Bug#463368: lighttpd: ldap_init implicitly converted to pointer

dann frazier dannf at debian.org
Thu Jan 31 06:55:42 UTC 2008


Package: lighttpd
Version: 1.4.18-1
Severity: important
Tags: patch
Usertags: implicit-pointer-conversion

Our automated buildd log filter[1] detected a problem that is likely to
cause your package to segfault on architectures where the size of a
pointer is greater than the size of an integer, such as ia64 and amd64.

This is often due to a missing function prototype definition.
For more information, see [2].

[1] http://people.debian.org/~dannf/check-implicit-pointer-functions
[2] http://wiki.debian.org/ImplicitPointerConversions

  Function `ldap_init' implicitly converted to pointer at mod_auth.c:545
  Function `ldap_init' implicitly converted to pointer at http_auth.c:785

The libldap API has been updated and many functions used by the ldap
plugin are now deprecated. This package should either update to the
new API or define LDAP_DEPRECATED to continue using the deprecated
interfaces.

This patch implements the lazy solution.

--- lighttpd-1.4.18.orig/src/http_auth.h	2007-01-14 02:40:02.000000000 -0700
+++ lighttpd-1.4.18/src/http_auth.h	2008-01-30 23:40:53.000000000 -0700
@@ -6,6 +6,7 @@
 
 #if defined(HAVE_LDAP_H) && defined(HAVE_LBER_H) && defined(HAVE_LIBLDAP) && defined(HAVE_LIBLBER)
 # define USE_LDAP
+# define LDAP_DEPRECATED 1
 # include <ldap.h>
 #endif
 





More information about the pkg-lighttpd-maintainers mailing list