diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2014-06-23 22:06:05 +0200 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2014-06-23 20:13:00 +0000 |
commit | dd7134d907350ccc574cdec596f4162860912bb9 (patch) | |
tree | 6511c02f75b969ce52d1f6e6460519badea470f1 /epan | |
parent | 59e860cf2fc5a5f4c16d06836e7e89d0803b3af2 (diff) |
Initialize whole buffer in GPRS Mobility and Session Management dissector
Bug: 10216
Change-Id: I572a7a6ce0f816063f02397b667dd46c990cf73e
Reviewed-on: https://code.wireshark.org/review/2583
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-gsm_a_gm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-gsm_a_gm.c b/epan/dissectors/packet-gsm_a_gm.c index bdedf9bb32..4cc0c4ec56 100644 --- a/epan/dissectors/packet-gsm_a_gm.c +++ b/epan/dissectors/packet-gsm_a_gm.c @@ -3862,7 +3862,7 @@ de_sm_apn(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, g curr_offset = offset; /* init buffer and copy it */ - memset(str, 0, MAX_APN_LENGTH); + memset(str, 0, MAX_APN_LENGTH+1); tvb_memcpy(tvb, str, offset, len<MAX_APN_LENGTH?len:MAX_APN_LENGTH); curr_len = 0; |