From b00cb114a24a3252bb1a4b6f9d3e71ecd2533038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jerry=20Lundstr=C3=B6m?= Date: Thu, 29 Aug 2024 16:07:22 +0200 Subject: [PATCH] Stack - `response_time_index`: Fix https://github.com/DNS-OARC/dsc/security/code-scanning/22 label buffer should be static --- src/response_time_index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/response_time_index.c b/src/response_time_index.c index 5fcc6452..a9acbf06 100644 --- a/src/response_time_index.c +++ b/src/response_time_index.c @@ -375,7 +375,7 @@ int response_time_indexer(const dns_message* m) int response_time_iterator(const char** label) { - char label_buf[128]; + static char label_buf[128]; if (!label) { next_iter = 0;