]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
dpdk: fix parsing of DPDK EAL argument options
authorAdam Kiripolsky <adam.kiripolsky@cesnet.cz>
Tue, 19 Aug 2025 14:07:34 +0000 (16:07 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 22 Aug 2025 07:45:38 +0000 (09:45 +0200)
Fix parsing of DPDK EAL argument options taken from suricata.yaml.

Ticket: 7856

src/runmode-dpdk.c

index d0bbab5c078f28e33ce45133f543d58ea1320131..09a98f467cd1621d76141c149a809cef7646c795 100644 (file)
@@ -226,7 +226,7 @@ static char *AllocAndSetOption(const char *arg)
 
     ptr = AllocArgument(full_len);
     strlcpy(ptr, dash_prefix, full_len);
-    strlcat(ptr, arg, full_len);
+    strlcat(ptr, arg, full_len + 1);
     SCReturnPtr(ptr, "char *");
 }