Module: kamailio Branch: 4.4 Commit: b5a4c125117d46e682595b04b22a6f850ba88087 URL: https://github.com/kamailio/kamailio/commit/b5a4c125117d46e682595b04b22a6f85...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2017-06-16T11:52:42+02:00
mtree: avoid char array access over the size
(cherry picked from commit 24718a4f0a7579abf9f32967cce2b86e5973cc6d) (cherry picked from commit 2d1dc7cfcde0410e44a8d53849c319c9d234a7b3)
---
Modified: modules/mtree/mtree.c
---
Diff: https://github.com/kamailio/kamailio/commit/b5a4c125117d46e682595b04b22a6f85... Patch: https://github.com/kamailio/kamailio/commit/b5a4c125117d46e682595b04b22a6f85...
---
diff --git a/modules/mtree/mtree.c b/modules/mtree/mtree.c index a77ea83835..7955bb253d 100644 --- a/modules/mtree/mtree.c +++ b/modules/mtree/mtree.c @@ -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++) {