From b19f8a6046b080e4c2e28354a58556bb26040c6f Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sat, 10 Sep 2022 12:50:32 +0200 Subject: [PATCH] fix possible format string exploit if packet dumping enabled Signed-off-by: Toni Uhlig --- probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/probe.c b/probe.c index bef73af..da35d3d 100644 --- a/probe.c +++ b/probe.c @@ -116,7 +116,7 @@ void hexdump(msg_info msg_info, const char *mem, unsigned int len) } str[c++] = '\n'; str[c++] = 0; - print_message(msg_info, str); + print_message(msg_info, "%s", str); c = 0; } }