Source: beid
Version: 3.5.2.dfsg-9
Severity: serious
Usertags: implicit-pointer-conversion
Tags: patch

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 `scdl_open' implicitly converted to pointer at 
src/newpkcs11/src/libopensc/card-belpic.c:954
  Function `scdl_get_address' implicitly converted to pointer at 
src/newpkcs11/src/libopensc/card-belpic.c:958

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 beid.orig/_src/beid-2.6/src/newpkcs11/src/libopensc/card-belpic.c beid-3.5.2.dfsg/_src/beid-2.6/src/newpkcs11/src/libopensc/card-belpic.c
--- beid.orig/_src/beid-2.6/src/newpkcs11/src/libopensc/card-belpic.c	2009-04-28 02:21:26.000000000 -0600
+++ beid-3.5.2.dfsg/_src/beid-2.6/src/newpkcs11/src/libopensc/card-belpic.c	2010-06-21 08:25:55.000000000 -0600
@@ -84,6 +84,7 @@
 #include "log.h"
 #include <stdlib.h>
 #include <string.h>
+#include <opensc/scdl.h>
 
 #ifdef BELPIC_PIN_PAD
 #include "winscard.h"

Reply via email to