]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Small OOB access fixed
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 30 Sep 2019 10:24:42 +0000 (11:24 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 30 Sep 2019 10:24:42 +0000 (11:24 +0100)
src/rspamadm/lua_repl.c

index 17061929ae0df5c455c91dcb43db578f0ab693d6..b7fd9a4d3c52dc3edb852eb11ae4d94d3dd82f66 100644 (file)
@@ -281,7 +281,7 @@ rspamadm_exec_input (lua_State *L, const gchar *input)
                                rspamd_printf ("local function: %d\n", cbref);
                        } else {
                                memset (&tr, 0, sizeof (tr));
-                               lua_logger_out_type (L, i, outbuf, sizeof (outbuf), &tr,
+                               lua_logger_out_type (L, i, outbuf, sizeof (outbuf) - 1, &tr,
                                                LUA_ESCAPE_UNPRINTABLE);
                                rspamd_printf ("%s\n", outbuf);
                        }