gtk_tree_path_prev() corrputing memory



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]