Blame SOURCES/wireshark-1.10.14-CVE-2018-11362.patch

a65ffb
diff --git a/epan/dissectors/packet-ldss.c b/epan/dissectors/packet-ldss.c
a65ffb
index 90db41e..fe2a1be 100644
a65ffb
--- a/epan/dissectors/packet-ldss.c
a65ffb
+++ b/epan/dissectors/packet-ldss.c
a65ffb
@@ -523,7 +523,7 @@ dissect_ldss_transfer (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
a65ffb
 						    FALSE);
a65ffb
 
a65ffb
 			/* Include new-line in line */
a65ffb
-			line = (guint8 *)tvb_memdup(tvb, offset, linelen+1); /* XXX - memory leak? */
a65ffb
+			line = tvb_get_ephemeral_string_enc(tvb, offset, linelen, ENC_ASCII);
a65ffb
 
a65ffb
 			if (tree) {
a65ffb
 				ti = proto_tree_add_text(ldss_tree, tvb, offset, linelen,