git:5.0:2d1dc7cf: mtree: avoid char array access over the size

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

git:5.0:2d1dc7cf: mtree: avoid char array access over the size

Daniel-Constantin Mierla-6
Module: kamailio
Branch: 5.0
Commit: 2d1dc7cfcde0410e44a8d53849c319c9d234a7b3
URL: https://github.com/kamailio/kamailio/commit/2d1dc7cfcde0410e44a8d53849c319c9d234a7b3

Author: Daniel-Constantin Mierla <[hidden email]>
Committer: Daniel-Constantin Mierla <[hidden email]>
Date: 2017-06-16T11:51:06+02:00

mtree: avoid char array access over the size

(cherry picked from commit 24718a4f0a7579abf9f32967cce2b86e5973cc6d)

---

Modified: src/modules/mtree/mtree.c

---

Diff:  https://github.com/kamailio/kamailio/commit/2d1dc7cfcde0410e44a8d53849c319c9d234a7b3.diff
Patch: https://github.com/kamailio/kamailio/commit/2d1dc7cfcde0410e44a8d53849c319c9d234a7b3.patch

---

diff --git a/src/modules/mtree/mtree.c b/src/modules/mtree/mtree.c
index 7098577381..433c6b4c50 100644
--- a/src/modules/mtree/mtree.c
+++ b/src/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++) {


_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Loading...