From 3502da17df595a538fe7bfcfce590752ed38b655 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 12 May 2024 19:36:28 +0200 Subject: [PATCH] assert its smaller than 5 --- client/deps/jansson/load.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/deps/jansson/load.c b/client/deps/jansson/load.c index 783cbb202..f2a517f16 100644 --- a/client/deps/jansson/load.c +++ b/client/deps/jansson/load.c @@ -186,6 +186,7 @@ static int stream_get(stream_t *stream, json_error_t *error) { // whatif count == 1 ?!? assert(count >= 2); + assert(count <= 4); // if count == 4 , i will become 5 and overflow. for (i = 1; i < count; i++)