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>
This commit is contained in:
parent
ce99d8a205
commit
3fc441e7a5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue