Package: gthumb
Version: 3:2.6.3-1.1
Severity: important

Hi,

  Gthumb passes values to g_locale_to_utf8 without checking for NULL.. This can
  cause crashes in certain circumstances.. The attached patch solves one such
  cache, where it causes a crash when viewing a certain image.

  Sjoerd

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-1-686
Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages gthumb depends on:
ii  libart-2.0-2         2.3.17-1            Library of functions for 2D graphi
ii  libatk1.0-0          1.9.0-1             The ATK accessibility toolkit
ii  libbonobo2-0         2.8.1-2             Bonobo CORBA interfaces library
ii  libbonoboui2-0       2.8.1-2             The Bonobo UI library
ii  libc6                2.3.4-3             GNU C Library: Shared libraries an
ii  libexif10            0.6.9-6             library to parse EXIF files
ii  libgconf2-4          2.10.0-1            GNOME configuration database syste
ii  libglade2-0          1:2.5.1-1           library to load .glade files at ru
ii  libglib2.0-0         2.6.4-1             The GLib library of C routines
ii  libgnome2-0          2.8.1-2             The GNOME 2 library - runtime file
ii  libgnomecanvas2-0    2.8.0-1             A powerful object-oriented display
ii  libgnomeprint2.2-0   2.8.2-1             The GNOME 2.2 print architecture -
ii  libgnomeprintui2.2-0 2.8.2-2             GNOME 2.2 print architecture User 
ii  libgnomeui-0         2.10.0-1            The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0       2.10.0-1            The GNOME virtual file-system libr
ii  libgphoto2-2         2.1.5-4             gphoto2 digital camera library
ii  libgphoto2-port0     2.1.5-4             gphoto2 digital camera port librar
ii  libgtk2.0-0          2.6.4-1             The GTK+ graphical user interface 
ii  libice6              4.3.0.dfsg.1-12.0.1 Inter-Client Exchange library
ii  libjpeg62            6b-10               The Independent JPEG Group's JPEG 
ii  liborbit2            1:2.12.1-1          libraries for ORBit2 - a CORBA ORB
ii  libpango1.0-0        1.8.1-1             Layout and rendering of internatio
ii  libpng12-0           1.2.8rel-1          PNG library - runtime
ii  libpopt0             1.7-5               lib for parsing cmdline parameters
ii  libsm6               4.3.0.dfsg.1-12.0.1 X Window System Session Management
ii  libtiff4             3.7.2-2             Tag Image File Format (TIFF) libra
ii  libxext6             4.3.0.dfsg.1-12.0.1 X Window System miscellaneous exte
ii  libxml2              2.6.16-7            GNOME XML library
ii  libxrender1          0.8.3-7             X Rendering Extension client libra
ii  scrollkeeper         0.3.14-10           A free electronic cataloging syste
ii  shared-mime-info     0.15-1              FreeDesktop.org shared MIME databa
ii  xlibs                4.3.0.dfsg.1-12     X Keyboard Extension (XKB) configu
ii  zlib1g               1:1.2.2-4           compression library - runtime

-- no debconf information
--- gthumb-2.6.3.orig/src/gth-exif-data-viewer.c
+++ gthumb-2.6.3/src/gth-exif-data-viewer.c
@@ -376,7 +376,11 @@
                        continue;
                }
 
-               utf8_value = g_locale_to_utf8 (get_exif_entry_value (e), -1, 0, 
0, 0);
+               if (get_exif_entry_value (e) == NULL) {
+                       utf8_value = NULL;
+               } else  {
+                 utf8_value = g_locale_to_utf8 (get_exif_entry_value (e), -1, 
0, 0, 0);
+               }
                if ((utf8_value == NULL) 
                    || (*utf8_value == 0) 
                    || _g_utf8_all_spaces (utf8_value)) {

Reply via email to