]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
vici: Increase maximum proposal length
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 6 Jul 2021 10:11:51 +0000 (12:11 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 7 Aug 2024 14:20:18 +0000 (16:20 +0200)
src/libcharon/plugins/vici/vici_config.c

index c46b8872b9d0f9cc56cb5fecaba01c1a8334e86c..2d548ab3a63c79d6f20564eaeabf7185de84ee35 100644 (file)
 
 #include <stdio.h>
 
+/**
+ *  Maximum proposal length
+ */
+#define MAX_PROPOSAL_LEN   2048
+
 /**
  * Magic value for an undefined lifetime
  */
@@ -599,7 +604,7 @@ static void free_child_data(child_data_t *data)
  */
 static bool parse_proposal(linked_list_t *list, protocol_id_t proto, chunk_t v)
 {
-       char buf[BUF_LEN];
+       char buf[MAX_PROPOSAL_LEN];
        proposal_t *proposal;
 
        if (!vici_stringify(v, buf, sizeof(buf)))