From 8f21d5c16707c460a1f3dd631e19118bbcb97752 Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Tue, 6 Apr 2010 13:40:06 +0000 Subject: [PATCH] Don't use %s as the format string in val_to_str(). This fixes the fuzz failure in bug 4646. svn path=/trunk/; revision=32398 --- plugins/docsis/packet-regrsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/docsis/packet-regrsp.c b/plugins/docsis/packet-regrsp.c index a0c87cdc6b..e857aadc73 100644 --- a/plugins/docsis/packet-regrsp.c +++ b/plugins/docsis/packet-regrsp.c @@ -59,7 +59,7 @@ dissect_regrsp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) col_add_fstr (pinfo->cinfo, COL_INFO, "Registration Response SID = %u (%s)", sid, - val_to_str (response, docsis_conf_code, "%s")); + val_to_str (response, docsis_conf_code, "%d")); if (tree) {