Package: lvm2 Version: 2.02.44-1 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 `completion_matches' implicitly converted to pointer at lvm.c:135 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
diff -urpN lvm2-2.02.44.orig/tools/lvm.c lvm2-2.02.44/tools/lvm.c --- lvm2-2.02.44.orig/tools/lvm.c 2008-12-17 22:27:18.000000000 -0700 +++ lvm2-2.02.44/tools/lvm.c 2009-02-23 21:56:28.909244639 -0700 @@ -25,9 +25,6 @@ int main(int argc, char **argv) # include <readline/readline.h> # include <readline/history.h> -# ifndef HAVE_RL_COMPLETION_MATCHES -# define rl_completion_matches(a, b) completion_matches((char *)a, b) -# endif static struct cmdline_context *_cmdline;