aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gtp.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2014-06-22 16:53:35 -0400
committerEvan Huus <eapache@gmail.com>2014-06-22 20:54:28 +0000
commit3fc441e7a5008640c68ec985e669d5092414a519 (patch)
tree7e1cbe57aa2bd60743148e5ea6060263077c8101 /epan/dissectors/packet-gtp.c
parentce99d8a205071eaa5f3de69f281a272861294a57 (diff)
Initialize whole buffer in GTP dissector
Bug:10216 Change-Id: Ib7de616d50937eb43b16daa4067ee0de9edc8ec7 Reviewed-on: https://code.wireshark.org/review/2562 Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-gtp.c')
-rw-r--r--epan/dissectors/packet-gtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-gtp.c b/epan/dissectors/packet-gtp.c
index da422a680c..23e953e379 100644
--- a/epan/dissectors/packet-gtp.c
+++ b/epan/dissectors/packet-gtp.c
@@ -4612,7 +4612,7 @@ decode_apn(tvbuff_t * tvb, int offset, guint16 length, proto_tree * tree, proto_
guint curr_len;
/* init buffer and copy it */
- memset(str, 0, MAX_APN_LENGTH);
+ memset(str, 0, MAX_APN_LENGTH+1);
tvb_memcpy(tvb, str, offset, length<MAX_APN_LENGTH?length:MAX_APN_LENGTH);
curr_len = 0;