forked from len0rd/rockbox
Fix out of bounds accesses in keybox and matrix
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22191 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2cab311635
commit
c80f6dad30
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue