Bug#305213: Crashes when loading a page with a favicon, due to memory corruption

Sjoerd Simons Sjoerd Simons <sjoerd@luon.net>, 305213@bugs.debian.org
Mon, 18 Apr 2005 19:24:34 +0200


This is a multi-part MIME message sent by reportbug.

--===============1655444141==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: epiphany-browser
Version: 1.6.2-1
Severity: normal
Tags: experimental patch

Hi,

  Attached patch fixes a memory corruption, caused by passing a wrong type of
  value to g_object_get (32 bit when 64 is needed).. Fixed in attached patch

  Sjoerd

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.11-spring
Locale: LANG=C, LC_CTYPE=nl_NL@euro (charmap=ISO-8859-15)

Versions of packages epiphany-browser depends on:
ii  dbus-1                0.23.4-1bindings0  simple interprocess messaging syst
ii  dbus-glib-1           0.23.4-1bindings0  simple interprocess messaging syst
ii  debconf               1.4.48             Debian configuration management sy
ii  gconf2                2.10.0-1           GNOME configuration database syste
ii  gnome-icon-theme      2.10.0-1           GNOME Desktop icon theme
ii  iso-codes             0.46-1             ISO language, territory, currency 
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.2.ds1-21       GNU C Library: Shared libraries an
ii  libgcc1               1:3.4.3-12         GCC support library
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  libgnome-desktop-2    2.10.1-1           Utility library for loading .deskt
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  libgnomeui-0          2.10.0-1           The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0        2.10.1-1           The GNOME virtual file-system libr
ii  libgtk2.0-0           2.6.4-1            The GTK+ graphical user interface 
ii  libice6               6.8.1-1ubuntu9.0.1 Inter-Client Exchange library
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  libpopt0              1.7-5              lib for parsing cmdline parameters
ii  libsm6                6.8.1-1ubuntu9.0.1 X Window System Session Management
ii  libstartup-notificati 0.8-1              library for program launch feedbac
ii  libstdc++5            1:3.3.5-12         The GNU Standard C++ Library v3
ii  libx11-6              6.8.1-1ubuntu9.0.1 X Window System protocol client li
ii  libxml2               2.6.16-7           GNOME XML library
ii  libxslt1.1            1.1.12-8           XSLT processing library - runtime 
ii  mozilla-browser       2:1.7.6-1          The Mozilla Internet application s
ii  mozilla-psm           2:1.7.6-1          The Mozilla Internet application s
ii  xlibs                 6.8.1-1ubuntu9.0.1 X Window System client libraries m
ii  zlib1g                1:1.2.2-4          compression library - runtime

-- no debconf information

--===============1655444141==
Content-Type: text/x-c; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="ephy.patch"

Index: embed/mozilla/mozilla-embed-persist.cpp
===================================================================
RCS file: /cvs/gnome/epiphany/embed/mozilla/mozilla-embed-persist.cpp,v
retrieving revision 1.47
diff -u -r1.47 mozilla-embed-persist.cpp
--- embed/mozilla/mozilla-embed-persist.cpp	17 Apr 2005 14:05:17 -0000	1.47
+++ embed/mozilla/mozilla-embed-persist.cpp	18 Apr 2005 17:14:19 -0000
@@ -136,7 +136,7 @@
 	nsresult rv;
 	char *filename;
 	char *uri;
-	long max_size;
+	gint64 max_size;
 	EphyEmbed *embed;
 	EphyEmbedPersistFlags flags;
 	EphyEmbedSingle *single;

--===============1655444141==--