Skip to content

Commit

Permalink
mtree: avoid char array access over the size
Browse files Browse the repository at this point in the history
(cherry picked from commit 24718a4)
(cherry picked from commit 2d1dc7c)
  • Loading branch information
miconda committed Jun 16, 2017
1 parent e81f7c9 commit b5a4c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mtree/mtree.c
Expand Up @@ -62,7 +62,7 @@ unsigned char _mt_char_table[MT_CHAR_TABLE_SIZE];
void mt_char_table_init(void)
{
unsigned int i;
for(i=0; i<=MT_CHAR_TABLE_SIZE; i++) {
for(i=0; i<MT_CHAR_TABLE_SIZE; i++) {
_mt_char_table[i] = MT_CHAR_TABLE_NOTSET;
}
for(i=0; i<mt_char_list.len; i++) {
Expand Down

0 comments on commit b5a4c12

Please sign in to comment.