diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-10-30 21:52:58 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-10-30 21:52:58 +0800 |
commit | 1fb397be102cdfe6fa12fb363e689ce68595cad0 (patch) | |
tree | 4aea3e19eec25147bef403e2c1397052f14b6133 /src | |
parent | ba4c78ce66c51332b9cdf4bdc7e9c9bf363c7cfc (diff) | |
download | gsoc2013-epiphany-1fb397be102cdfe6fa12fb363e689ce68595cad0.tar gsoc2013-epiphany-1fb397be102cdfe6fa12fb363e689ce68595cad0.tar.gz gsoc2013-epiphany-1fb397be102cdfe6fa12fb363e689ce68595cad0.tar.bz2 gsoc2013-epiphany-1fb397be102cdfe6fa12fb363e689ce68595cad0.tar.lz gsoc2013-epiphany-1fb397be102cdfe6fa12fb363e689ce68595cad0.tar.xz gsoc2013-epiphany-1fb397be102cdfe6fa12fb363e689ce68595cad0.tar.zst gsoc2013-epiphany-1fb397be102cdfe6fa12fb363e689ce68595cad0.zip |
Add array bounds check; fixes bug #320169.
2005-10-30 Christian Persch <chpe@cvs.gnome.org>
* src/bookmarks/ephy-nodes-cover.c: (ephy_nodes_get_covering):
Add array bounds check; fixes bug #320169.
Diffstat (limited to 'src')
-rw-r--r-- | src/bookmarks/ephy-nodes-cover.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bookmarks/ephy-nodes-cover.c b/src/bookmarks/ephy-nodes-cover.c index dfe461ee3..92b2800f3 100644 --- a/src/bookmarks/ephy-nodes-cover.c +++ b/src/bookmarks/ephy-nodes-cover.c @@ -162,7 +162,7 @@ ephy_nodes_get_covering (const GPtrArray *parents, const GPtrArray *children, } /* While there are more suitable topics... */ - while (count_u[p]) + while (p < parents->len && count_u[p]) { /* Update the arrays of uncovered bookmarks and covering topics. */ parent = g_ptr_array_index (parents, p); |