Fixed crash in JSON parser.

This commit is contained in:
grunfink
2026-02-23 06:20:17 +01:00
parent 089cc5c86a
commit 2c91041cd1
+4
View File
@@ -282,6 +282,10 @@ static xs_val *_xs_json_load_lexer(FILE *f, js_type *t)
cp += 0x2400;
break;
default:
*t = JS_ERROR;
break;
}
v = xs_utf8_insert(v, cp, &offset);