From: Michael Tremer Date: Thu, 6 Mar 2025 18:19:03 +0000 (+0000) Subject: lua: Perform formatting string sanitization X-Git-Tag: 0.9.18~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75bd79d623f876797982d7466618f2b7ebb10fb1;p=location%2Flibloc.git lua: Perform formatting string sanitization Signed-off-by: Michael Tremer --- 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;