Changeset: 4261a1837b4e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/4261a1837b4e
Modified Files:
monetdb5/modules/atoms/json.c
Branch: Jul2021
Log Message:
Tab, linefeed and carriage return are not allowed in JSON strings.
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
@@ -864,6 +864,10 @@ JSONstringParser(const char *j, const ch
throw(MAL, "json.parser", "illegal escape
char");
}
break;
+ case '\t':
+ case '\n':
+ case '\r':
+ throw(MAL, "json.parser", "illegal white space char");
case '"':
if (seensurrogate)
throw(MAL, "json.parser", "illegal escape
char");
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list