[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#410091: konqueror-nsplugins: nspluginviewer segfaults on amd64



Package: konqueror-nsplugins
Version: 4:3.5.5a.dfsg.1-6.1
Severity: important
Tags: patch

Using nspluginviewer with libflash on amd64 causes a segfault in
NPP_SetWindow. I could find out, that the problem is related to the size of
long which is 32 bits on i386 and 64 bits on x86_64. Using the right sized
types from linux/types.h fixed it (see below). And i think it should not
break it on other architectures.
However I figured out that the Version of the files in sdk is 67527 whereas
the corresponding files from libflash have version 1.2 which seems by far
more recent. So maybe this is just a facet of a greater Problem.

--- kdebase-3.5.5a.dfsg.1.orig/nsplugins/sdk/npapi.h
+++ kdebase-3.5.5a.dfsg.1/nsplugins/sdk/npapi.h
@@ -8,6 +8,7 @@
 #define _NPAPI_H_
 
 #include "jri.h"                /* Java Runtime Interface */
+#include "linux/types.h"
 
 #ifdef _WINDOWS
 # ifndef XP_WIN
@@ -55,23 +56,23 @@
 /*----------------------------------------------------------------------*/
 
 #ifndef _UINT16
-typedef unsigned short uint16;
+typedef u_int16_t uint16;
 #endif
 #ifndef _UINT32
 #if defined(__alpha)
 typedef unsigned int uint32;
 #else /* __alpha */
-typedef unsigned long uint32;
+typedef u_int32_t uint32;
 #endif /* __alpha */
 #endif
 #ifndef _INT16
-typedef short int16;
+typedef int16_t int16;
 #endif
 #ifndef _INT32
 #if defined(__alpha) || defined(_AIX)
 typedef int int32;
 #else /* __alpha || _AIX */
-typedef long int32;
+typedef int32_t int32;
 #endif /* __alpha || _AIX */
 #endif 


-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.19.2
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)

Versions of packages konqueror-nsplugins depends on:
ii  kdelibs4c2a            4:3.5.5a.dfsg.1-5 core libraries and binaries for al
ii  libc6                  2.3.6.ds1-11      GNU C Library: Shared libraries
ii  libgcc1                1:4.1.1-21        GCC support library
ii  libqt3-mt              3:3.3.7-3         Qt GUI Library (Threaded runtime v
ii  libstdc++6             4.1.1-21          The GNU Standard C++ Library v3
ii  libx11-6               2:1.0.3-5         X11 client-side library
ii  libxt6                 1:1.0.2-2         X11 toolkit intrinsics library

konqueror-nsplugins recommends no packages.

-- no debconf information



Reply to: