gtk_tree_path_prev() corrputing memory
- From: Tim Janik <timj gtk org>
- To: Jonathan Blandford <jrb redhat com>
- Cc: Gtk+ Developers <gtk-devel-list gnome org>
- Subject: gtk_tree_path_prev() corrputing memory
- Date: Mon, 15 Nov 2004 16:43:13 +0100 (CET)
hi jonathan.
gboolean
gtk_tree_path_prev (GtkTreePath *path)
{
g_return_val_if_fail (path != NULL, FALSE);
if (path->indices[path->depth - 1] == 0)
return FALSE;
path->indices[path->depth - 1] -= 1;
return TRUE;
}
if path->depth==0, this will access invalid memory
regions (even write to them). i suppose this misses a
if (!path->depth) return FALSE; ?
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]