From 75bd79d623f876797982d7466618f2b7ebb10fb1 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 6 Mar 2025 18:19:03 +0000 Subject: [PATCH] lua: Perform formatting string sanitization Signed-off-by: Michael Tremer --- src/lua/location.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lua/location.c b/src/lua/location.c index 1c94889..0330827 100644 --- a/src/lua/location.c +++ b/src/lua/location.c @@ -36,6 +36,9 @@ struct loc_ctx* ctx = NULL; static int log_callback_ref = 0; +static void log_callback(struct loc_ctx* _ctx, void* data, int priority, const char* file, + int line, const char* fn, const char* format, va_list args) __attribute__((format(printf, 7, 0))); + static void log_callback(struct loc_ctx* _ctx, void* data, int priority, const char* file, int line, const char* fn, const char* format, va_list args) { char* message = NULL; -- 2.39.5