Mailinglist Archive: opensuse-bugs (7989 mails)

< Previous Next >
[Bug 223606] LSB: test involving GtkTreeView crashes on memory corruption
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 15 Dec 2006 06:53:42 -0700 (MST)
  • Message-id: <20061215135342.E646F25C889@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=223606


jpr@xxxxxxxxxx changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
Info Provider| |federico@xxxxxxxxxx




------- Comment #3 from jpr@xxxxxxxxxx 2006-12-15 06:53 MST -------
This particular case appears to crash because of the size of the ints in the
indices. They take 10 chars to represent but gtk_tree_path_to_string only
allocates for 8 chars per indice which has to include the ':' char as well as
the trailing NULL. The indices values are equal to G_MAXINT though, so I think
this is a gtk bug.

The allocation in gtk_tree_path_to_string probably needs to be:

g_new0 (gchar, path->depth * 11);

The first indice doesn't include a ':' so it can account for the trailling
NULL.

Federico, sound right?


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

< Previous Next >