Mention we don't validate utf-8

This commit is contained in:
2025-05-16 16:59:45 -04:00
parent 2b640832f6
commit adedfc6435

View File

@@ -206,7 +206,8 @@ constexpr static struct Tables {
namespace {
// Straightforward recursive descent that doesn't handle string escaping and
// all numbers. May stack overflow on deeply nested json documents
// all numbers. Does not validate utf-8. May stack overflow on deeply nested
// json documents
struct Parser1 {
Parser1(char *buf, int len, const Callbacks *callbacks, void *data)
: buf(buf), bufEnd(buf + len), callbacks(callbacks), data(data) {}
@@ -453,7 +454,7 @@ private:
#endif
// Table-based ll(1) parser that doesn't handle escaping and all numbers, with a
// streaming interface. Uses O(1) memory.
// streaming interface. Does not validate utf-8. Uses O(1) memory.
struct Parser2 {
Parser2(const Callbacks *callbacks, void *data)
: callbacks(callbacks), data(data) {