Mention we don't validate utf-8
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user