Package: libapache-mod-acct
Version: 0.5-17
Tags: patch
Severity: important

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

The attached patch fixes one of the problems.  Note, however, that one
additional problem is present due to the use of the
ap_response_code_string() function, which is only defined by the apache
header if CORE_PRIVATE is defined.  I don't know whether the best
solution is to rewrite the code to not use this symbol, or to convince
the apache maintainers to make this symbol non-private.  We could cheat
and #define CORE_PRIVATE, but that's likely a bad idea[2].

[1]http://people.debian.org/~dannf/check-implicit-pointer-functions
[2]http://mail-archives.apache.org/mod_mbox/httpd-dev/200502.mbox/[EMAIL 
PROTECTED]

--- mod_accounting.c~   2005-07-24 12:00:27.000000000 -0600
+++ mod_accounting.c    2005-07-24 12:12:48.000000000 -0600
@@ -26,6 +26,10 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <httpd.h>
+#include <http_config.h>
+#include <http_core.h>
+#include <http_protocol.h>
 
 #include "mod_accounting.h"
 

-- 
dann frazier <[EMAIL PROTECTED]>
--- Begin Message ---
Function `ap_index_of_response' implicitly converted to pointer at 
mod_accounting.c:103
Function `ap_index_of_response' implicitly converted to pointer at 
mod_accounting.c:103

--- End Message ---

Reply via email to