Mention we don't validate utf-8
This commit is contained in:
@@ -206,7 +206,8 @@ constexpr static struct Tables {
|
|||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
// Straightforward recursive descent that doesn't handle string escaping and
|
// 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 {
|
struct Parser1 {
|
||||||
Parser1(char *buf, int len, const Callbacks *callbacks, void *data)
|
Parser1(char *buf, int len, const Callbacks *callbacks, void *data)
|
||||||
: buf(buf), bufEnd(buf + len), callbacks(callbacks), data(data) {}
|
: buf(buf), bufEnd(buf + len), callbacks(callbacks), data(data) {}
|
||||||
@@ -453,7 +454,7 @@ private:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Table-based ll(1) parser that doesn't handle escaping and all numbers, with a
|
// 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 {
|
struct Parser2 {
|
||||||
Parser2(const Callbacks *callbacks, void *data)
|
Parser2(const Callbacks *callbacks, void *data)
|
||||||
: callbacks(callbacks), data(data) {
|
: callbacks(callbacks), data(data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user