summaryrefslogtreecommitdiffstats
path: root/apps/plugins/keybox.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2009-08-06 19:02:59 +0000
committerNils Wallménius <nils@rockbox.org>2009-08-06 19:02:59 +0000
commitc80f6dad303da248d7fe7d1acbe5916a06e3f73d (patch)
treebb9c1918c50266e4368ed53926b17daea9c2a3ea /apps/plugins/keybox.c
parent2cab3116356e377fe0c3073ce679b69478553565 (diff)
downloadrockbox-c80f6dad303da248d7fe7d1acbe5916a06e3f73d.tar.gz
rockbox-c80f6dad303da248d7fe7d1acbe5916a06e3f73d.tar.bz2
rockbox-c80f6dad303da248d7fe7d1acbe5916a06e3f73d.zip
Fix out of bounds accesses in keybox and matrix
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22191 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/keybox.c')
-rw-r--r--apps/plugins/keybox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/keybox.c b/apps/plugins/keybox.c
index 448050938f..6c59470fa4 100644
--- a/apps/plugins/keybox.c
+++ b/apps/plugins/keybox.c
@@ -182,7 +182,7 @@ static void add_entry(int selected_item)
for (i = 0; i < MAX_ENTRIES && pw_list.entries[i].used; i++)
;
- if (pw_list.entries[i].used)
+ if (MAX_ENTRIES == i)
{
rb->splash(HZ, "Password list full");
return;