[Pkg-utopia-maintainers] Bug#550901: get_current_dir_name implicitly converted to pointer

dann frazier dannf at debian.org
Tue Oct 13 22:40:16 UTC 2009


Package: policykit-1
Version: 0.94-3
Severity: serious
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.

  Function `get_current_dir_name' implicitly converted to pointer at frobnicate.c:45

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

Though it is guaranteed that this codepath will cause a segfault on certain
architectures, it is not guaranteed that this codepath would ever be executed
(e.g., if the returned pointer is never dereferenced). However, this bug
does prevent the ia64 buildd from successfully building this package, resulting
in a practical FTBFS issue and warranting the serious severity.

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

--- policykit-1-0.94.orig/src/examples/frobnicate.c	2009-08-12 07:56:47.000000000 -0600
+++ policykit-1-0.94/src/examples/frobnicate.c	2009-10-13 16:38:21.442631769 -0600
@@ -19,6 +19,7 @@
  * Author: David Zeuthen <davidz at redhat.com>
  */
 
+#define _GNU_SOURCE 1
 #include <glib.h>
 #include <unistd.h>
 #include <errno.h>





More information about the Pkg-utopia-maintainers mailing list