aboutsummaryrefslogtreecommitdiff
path: root/snac.h
diff options
context:
space:
mode:
authorSanttu Lakkala <inz@inz.fi>2025-02-13 08:36:34 +0100
committerdefault <nobody@localhost>2025-02-13 08:36:34 +0100
commitaf8a95bbf0b3709d605175da92b93ad1d0aa0bd3 (patch)
treee42906a03f0d8cd45cad46803512b50bafc4956a /snac.h
parent09803021648ea958a889cc2aa743d5f8c65ecbae (diff)
Limit JSON depth
Diffstat (limited to 'snac.h')
-rw-r--r--snac.h4
1 files changed, 4 insertions, 0 deletions
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