]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
vici: Increase buffer to hold uint64_t when parsing packet limits
authorTobias Brunner <tobias@strongswan.org>
Mon, 7 Apr 2025 12:59:11 +0000 (14:59 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 10 Apr 2025 06:31:10 +0000 (08:31 +0200)
src/libcharon/plugins/vici/vici_config.c

index 4685ffda5512aa5b5bcb099d688bb8e3f2b923c6..5c6eb011839da8662fbcb3dce88cac4ef4e682e9 100644 (file)
@@ -1183,7 +1183,7 @@ CALLBACK(parse_uint32_bin, bool,
 CALLBACK(parse_uint64, bool,
        uint64_t *out, chunk_t v)
 {
-       char buf[16], *end;
+       char buf[32], *end;
        unsigned long long l;
 
        if (!vici_stringify(v, buf, sizeof(buf)))