Fix a format string vulnerability discovered by Bryan Fulton.

svn path=/trunk/; revision=13769
This commit is contained in:
Gerald Combs 2005-03-16 17:22:38 +00:00
parent eadb365e2a
commit 47999c28c4
1 changed files with 1 additions and 1 deletions

View File

@ -1607,7 +1607,7 @@ dissect_mq_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* Dissect the common part of these structures */
guint8* sStructId;
sStructId = tvb_get_string(tvb, offset, 4);
ti = proto_tree_add_text(mqroot_tree, tvb, offset, -1, (const char*)sStructId);
ti = proto_tree_add_text(mqroot_tree, tvb, offset, -1, "%s", (const char*)sStructId);
g_free(sStructId);
mq_tree = proto_item_add_subtree(ti, ett_mq_spi_base);