Package: glabels Version: 3.4.0-1 Severity: normal Tags: patch glabels-3-batch crashes when de-referencing the gl_prefs value constructed in gl_prefs_init_null because there is no prototype provided for gl_prefs_model_new_null and so the pointer returned from that is cast to an int and back to a pointer, truncating the top 32 bits of the address.
There is a patch for this upstream in: commit 01c80fc941cf5c8bf0d2b64a6a58cc3b5138f932 Author: Jim Evins <ev...@snaught.com> Date: Sun Apr 24 11:32:28 2016 -0400 Added missing function prototype to header. -- System Information: Debian Release: 9.0 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.9.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.utf8, 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 glabels depends on: ii dpkg 1.18.22 ii glabels-data 3.4.0-1 ii libc6 2.24-9 ii libcairo2 1.14.8-1 ii libebook-1.2-16 3.22.4-1 ii libebook-contacts-1.2-2 3.22.4-1 ii libedataserver-1.2-22 3.22.4-1 ii libgdk-pixbuf2.0-0 2.36.4-1 ii libglib2.0-0 2.50.2-2 ii libgtk-3-0 3.22.7-2 ii libiec16022-0 0.2.4-1.1 ii libpango-1.0-0 1.40.3-3 ii libpangocairo-1.0-0 1.40.3-3 ii libqrencode3 3.4.4-1+b1 ii librsvg2-2 2.40.16-1 ii libxml2 2.9.4+dfsg1-2.2 Versions of packages glabels recommends: ii evince 3.22.1-3 Versions of packages glabels suggests: ii evolution-data-server 3.22.4-1 -- no debconf information
commit 01c80fc941cf5c8bf0d2b64a6a58cc3b5138f932 Author: Jim Evins <ev...@snaught.com> Date: Sun Apr 24 11:32:28 2016 -0400 Added missing function prototype to header. diff --git a/src/prefs-model.h b/src/prefs-model.h index 72efa84..10316a1 100644 --- a/src/prefs-model.h +++ b/src/prefs-model.h @@ -59,6 +59,7 @@ GType gl_prefs_model_get_type (void) G_GNUC_CONST; glPrefsModel *gl_prefs_model_new (void); +glPrefsModel *gl_prefs_model_new_null (void); void gl_prefs_model_set_units (glPrefsModel *this, lglUnits units);