diff options
author | Gerald Combs <gerald@wireshark.org> | 2005-06-20 19:35:58 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2005-06-20 19:35:58 +0000 |
commit | 3a6c9ab13448b557586a427bd025bc1ff99ac4cc (patch) | |
tree | 0bc3f2c2b25520d8672dc5a055f3181818019400 /epan/dissectors/packet-rsvp.c | |
parent | c3cfe365cfdecc58122b8042797d58004e2297f3 (diff) | |
download | wireshark-3a6c9ab13448b557586a427bd025bc1ff99ac4cc.tar.gz |
Fix a format string vulneratility in the AFP dissector identified
by iDEFENSE. Add constant format strings to proto_item_append_text()
in a bunch of other dissectors. Copy a comment from proto.c to proto.h.
svn path=/trunk/; revision=14713
Diffstat (limited to 'epan/dissectors/packet-rsvp.c')
-rw-r--r-- | epan/dissectors/packet-rsvp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-rsvp.c b/epan/dissectors/packet-rsvp.c index 1553215e9c..9b45366104 100644 --- a/epan/dissectors/packet-rsvp.c +++ b/epan/dissectors/packet-rsvp.c @@ -1237,7 +1237,7 @@ dissect_rsvp_session (proto_tree *ti, tvbuff_t *tvb, proto_tree_add_text(rsvp_object_tree, tvb, offset+2, 1, "Class number: %u - %s", class, type_str); - proto_item_set_text(ti, summary_session(tvb, offset)); + proto_item_set_text(ti, "%s", summary_session(tvb, offset)); switch(type) { case RSVP_SESSION_TYPE_IPV4: @@ -1866,7 +1866,7 @@ dissect_rsvp_template_filter (proto_tree *ti, tvbuff_t *tvb, break; } - proto_item_set_text(ti, summary_template(tvb, offset)); + proto_item_set_text(ti, "%s", summary_template(tvb, offset)); switch(type) { case 1: proto_tree_add_text(rsvp_object_tree, tvb, offset+3, 1, |