Changeset: b475c4cdfafc for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/b475c4cdfafc
Modified Files:
        monetdb5/modules/atoms/json.c
Branch: Oct2020
Log Message:

Add a recursion check.


diffs (14 lines):

diff --git a/monetdb5/modules/atoms/json.c b/monetdb5/modules/atoms/json.c
--- a/monetdb5/modules/atoms/json.c
+++ b/monetdb5/modules/atoms/json.c
@@ -912,6 +912,10 @@ JSONtoken(JSON *jt, const char *j, const
 
        if (jt->error)
                return idx;
+       if (THRhighwater()) {
+               jt->error = createException(MAL, "json.parser", "expression too 
complex to parse");
+               return idx;
+       }
        skipblancs(j);
        switch (*j) {
        case '{':
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to