From af8a95bbf0b3709d605175da92b93ad1d0aa0bd3 Mon Sep 17 00:00:00 2001 From: Santtu Lakkala Date: Thu, 13 Feb 2025 08:36:34 +0100 Subject: Limit JSON depth --- snac.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'snac.h') diff --git a/snac.h b/snac.h index 9d349fd..d2d73af 100644 --- a/snac.h +++ b/snac.h @@ -16,6 +16,10 @@ #define MAX_THREADS 256 #endif +#ifndef MAX_JSON_DEPTH +#define MAX_JSON_DEPTH 8 +#endif + #ifndef MAX_CONVERSATION_LEVELS #define MAX_CONVERSATION_LEVELS 48 #endif -- cgit v1.2.3