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

Bug#798273: libatk-wrapper-java-jni:amd64: Segmentation fault, null pointer dereference



Package: libatk-wrapper-java-jni
Version: 0.33.0-4.1~
Severity: serious
Justification: Crashes programs using this library

Hi,

I have been experiencing crashes on netbeans, with SIGSEGV on startup. I
managed to trace this to libatk-wrapper-jni. I applied the following
patch to make this work:

--- java-atk-wrapper-0.33.0.orig/jni/src/AtkWrapper.c
+++ java-atk-wrapper-0.33.0/jni/src/AtkWrapper.c
@@ -1143,6 +1143,9 @@ static gboolean
 component_added_handler (gpointer p)
 {
   JNIEnv *jniEnv;
+  if (p == NULL) {
+    return FALSE;
+  }
 
   CallbackPara *para = (CallbackPara*)p;
   jobject global_ac = para->global_ac;


I'm not tagging this patch because it is unlikely this is the correct
fix (why did alloc_callback_para return NULL in the first place? If this
is normal then the handler should not be registered at all), but
it allows me to continue using netbeans in the meantime.


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.1.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libatk-wrapper-java-jni:amd64 depends on:
ii  libatk-bridge2.0-0   2.16.0-1
ii  libatk-wrapper-java  0.33.0-4.1~
ii  libatk1.0-0          2.16.0-2
ii  libatspi2.0-0        2.16.0-1
ii  libc6                2.19-19
ii  libcairo-gobject2    1.14.2-2
ii  libcairo2            1.14.2-2
ii  libdbus-1-3          1.10.0-1
ii  libgdk-pixbuf2.0-0   2.31.5-1
ii  libglib2.0-0         2.44.1-1.1
ii  libgtk-3-0           3.16.6-1
ii  libgtk2.0-0          2.24.28-1
ii  libpango-1.0-0       1.36.8-3
ii  libpangocairo-1.0-0  1.36.8-3

libatk-wrapper-java-jni:amd64 recommends no packages.

libatk-wrapper-java-jni:amd64 suggests no packages.

-- no debconf information


Reply to: