vici: Increase maximum proposal length

This commit is contained in:
Andreas Steffen 2021-07-06 12:11:51 +02:00 committed by Tobias Brunner
parent 5bed7b1868
commit 63a01f6190

View File

@ -54,6 +54,11 @@
#include <stdio.h> #include <stdio.h>
/**
* Maximum proposal length
*/
#define MAX_PROPOSAL_LEN 2048
/** /**
* Magic value for an undefined lifetime * Magic value for an undefined lifetime
*/ */
@ -597,7 +602,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) 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; proposal_t *proposal;
if (!vici_stringify(v, buf, sizeof(buf))) if (!vici_stringify(v, buf, sizeof(buf)))