Bug#611263: libgtk2.0-0: Segfault in gtk_notebook_real_switch_page()

Gabor Kiss kissg at ssg.ki.iif.hu
Thu Jan 27 14:00:11 UTC 2011


Package: libgtk2.0-0
Version: 2.12.12-1~lenny2
Severity: normal
Tags: patch

Emitting 'switch_page' signal for a GtkNotebook causes segfault.
Function gtk_notebook_real_switch_page() is called with page=NULL
but this pointer is dereferenced in the first statement.

See other details in gtk-perl mailing list archive.
Search thread "Gtk2::Notebook and switch-page signal".
E.g.
http://mail.gnome.org/archives/gtk-perl-list/2011-January/msg00018.html

Adding a simple pointer check solves the problem. See attached patch.
The problem found and fixed on lenny but the very similar code of
version 2.20.1 in squeeze probably also suffers this.

Gabor

-- System Information:
Debian Release: 5.0.8
  APT prefers stable
  APT policy: (700, 'stable'), (500, 'proposed-updates')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages libgtk2.0-0 depends on:
ii  libatk1.0-0     1.22.0-1                 The ATK accessibility toolkit
ii  libc6           2.7-18lenny7             GNU C Library: Shared libraries
ii  libcairo2       1.6.4-7                  The Cairo 2D vector graphics libra
ii  libcomerr2      1.41.3-1                 common error description library
ii  libcups2        1.3.8-1+lenny8           Common UNIX Printing System(tm) - 
ii  libfontconfig1  2.6.0-3                  generic font configuration library
ii  libglib2.0-0    2.16.6-3                 The GLib library of C routines
ii  libgnutls26     2.4.2-6+lenny2           the GNU TLS library - runtime libr
ii  libgtk2.0-commo 2.12.12-1~lenny2         Common files for the GTK+ graphica
ii  libjpeg62       6b-14                    The Independent JPEG Group's JPEG 
ii  libkrb53        1.6.dfsg.4~beta1-5lenny6 MIT Kerberos runtime libraries
ii  libpango1.0-0   1.20.5-6                 Layout and rendering of internatio
ii  libpng12-0      1.2.27-2+lenny4          PNG library - runtime
ii  libtiff4        3.8.2-11.3               Tag Image File Format (TIFF) libra
ii  libx11-6        2:1.1.5-2                X11 client-side library
ii  libxcomposite1  1:0.4.0-3                X11 Composite extension library
ii  libxcursor1     1:1.1.9-1                X cursor management library
ii  libxdamage1     1:1.1.1-4                X11 damaged region extension libra
ii  libxext6        2:1.0.4-2                X11 miscellaneous extension librar
ii  libxfixes3      1:4.0.3-2                X11 miscellaneous 'fixes' extensio
ii  libxi6          2:1.1.4-1                X11 Input extension library
ii  libxinerama1    2:1.0.3-2                X11 Xinerama extension library
ii  libxrandr2      2:1.2.3-1                X11 RandR extension library
ii  libxrender1     1:0.9.4-2                X Rendering Extension client libra
ii  zlib1g          1:1.2.3.3.dfsg-12        compression library - runtime

Versions of packages libgtk2.0-0 recommends:
ii  hicolor-icon-theme      0.10-1           default fallback theme for FreeDes
ii  libgtk2.0-bin           2.12.12-1~lenny2 The programs for the GTK+ graphica

Versions of packages libgtk2.0-0 suggests:
ii  librsvg2-common           2.22.2-2lenny1 SAX-based renderer library for SVG

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gtknotebook.c_pointer_check.patch
Type: text/x-c
Size: 354 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20110127/536b1fd5/attachment.bin>


More information about the pkg-gnome-maintainers mailing list