Merge pull request #1416 from simdjson/jkeiser/safe-iterators-2

Add safety checks for out of order array/object iteration+indexing
This commit is contained in:
John Keiser
2021-02-05 09:47:03 -08:00
committed by GitHub
9 changed files with 186 additions and 29 deletions
+2 -1
View File
@@ -28,7 +28,8 @@ namespace internal {
{ INVALID_JSON_POINTER, "Invalid JSON pointer syntax." },
{ INVALID_URI_FRAGMENT, "Invalid URI fragment syntax." },
{ UNEXPECTED_ERROR, "Unexpected error, consider reporting this problem as you may have found a bug in simdjson" },
{ PARSER_IN_USE, "Cannot parse a new document while a document is still in use." }
{ PARSER_IN_USE, "Cannot parse a new document while a document is still in use." },
{ OUT_OF_ORDER_ITERATION, "Objects and arrays can only be iterated when they are first encountered." }
}; // error_messages[]
} // namespace internal