]> Pileus Git - ~andy/gtk/commitdiff
Use indices[i] >= level->array->len rather than level->array->len >
authorDave Camp <dave@ximian.com>
Fri, 24 May 2002 16:24:04 +0000 (16:24 +0000)
committerDave Camp <campd@src.gnome.org>
Fri, 24 May 2002 16:24:04 +0000 (16:24 +0000)
2002-05-24  Dave Camp  <dave@ximian.com>

* gtk/gtktreemodelsort.c: Use indices[i] >= level->array->len
rather than level->array->len > indices[i] in the bounds check.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktreemodelsort.c

index 26c325ed43dba06a7648cf06e991ebfdd854556f..4c5df5472b123a92dddd869bf73a7126f0d2b322 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-05-24  Dave Camp  <dave@ximian.com>
+
+       * gtk/gtktreemodelsort.c: Use indices[i] >= level->array->len
+       rather than level->array->len > indices[i] in the bounds check.
+
 2002-05-23  Tor Lillqvist  <tml@iki.fi>
 
        * gtk-zip.sh.in: Use correct path to the loaders and immodules
index 26c325ed43dba06a7648cf06e991ebfdd854556f..4c5df5472b123a92dddd869bf73a7126f0d2b322 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-24  Dave Camp  <dave@ximian.com>
+
+       * gtk/gtktreemodelsort.c: Use indices[i] >= level->array->len
+       rather than level->array->len > indices[i] in the bounds check.
+
 2002-05-23  Tor Lillqvist  <tml@iki.fi>
 
        * gtk-zip.sh.in: Use correct path to the loaders and immodules
index 26c325ed43dba06a7648cf06e991ebfdd854556f..4c5df5472b123a92dddd869bf73a7126f0d2b322 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-24  Dave Camp  <dave@ximian.com>
+
+       * gtk/gtktreemodelsort.c: Use indices[i] >= level->array->len
+       rather than level->array->len > indices[i] in the bounds check.
+
 2002-05-23  Tor Lillqvist  <tml@iki.fi>
 
        * gtk-zip.sh.in: Use correct path to the loaders and immodules
index 26c325ed43dba06a7648cf06e991ebfdd854556f..4c5df5472b123a92dddd869bf73a7126f0d2b322 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-24  Dave Camp  <dave@ximian.com>
+
+       * gtk/gtktreemodelsort.c: Use indices[i] >= level->array->len
+       rather than level->array->len > indices[i] in the bounds check.
+
 2002-05-23  Tor Lillqvist  <tml@iki.fi>
 
        * gtk-zip.sh.in: Use correct path to the loaders and immodules
index 26c325ed43dba06a7648cf06e991ebfdd854556f..4c5df5472b123a92dddd869bf73a7126f0d2b322 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-24  Dave Camp  <dave@ximian.com>
+
+       * gtk/gtktreemodelsort.c: Use indices[i] >= level->array->len
+       rather than level->array->len > indices[i] in the bounds check.
+
 2002-05-23  Tor Lillqvist  <tml@iki.fi>
 
        * gtk-zip.sh.in: Use correct path to the loaders and immodules
index 26c325ed43dba06a7648cf06e991ebfdd854556f..4c5df5472b123a92dddd869bf73a7126f0d2b322 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-24  Dave Camp  <dave@ximian.com>
+
+       * gtk/gtktreemodelsort.c: Use indices[i] >= level->array->len
+       rather than level->array->len > indices[i] in the bounds check.
+
 2002-05-23  Tor Lillqvist  <tml@iki.fi>
 
        * gtk-zip.sh.in: Use correct path to the loaders and immodules
index eb9b87e3fb3458867cf3d766ff35915c6b6c7c6a..a51e67c0016e04e888040c58d94bf7b2f35e6f62 100644 (file)
@@ -883,7 +883,7 @@ gtk_tree_model_sort_get_iter (GtkTreeModel *tree_model,
   for (i = 0; i < depth - 1; i++)
     {
       if ((level == NULL) ||
-         (level->array->len < indices[i]))
+         (indices[i] >= level->array->len))
        return FALSE;
 
       if (g_array_index (level->array, SortElt, indices[i]).children == NULL)