forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
CMake/resolve_dependency_modules/simdjson/fix-control-char.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/src/fallback.cpp b/src/fallback.cpp | ||
index f8e87be0..1bbbd67a 100644 | ||
--- a/src/fallback.cpp | ||
+++ b/src/fallback.cpp | ||
@@ -130,7 +130,6 @@ simdjson_inline bool validate_string() { | ||
} else if (simdjson_unlikely(buf[idx] & 0x80)) { | ||
validate_utf8_character(); | ||
} else { | ||
- if (buf[idx] < 0x20) { error = UNESCAPED_CHARS; } | ||
idx++; | ||
} | ||
} | ||
diff --git a/src/generic/stage1/json_structural_indexer.h b/src/generic/stage1/json_structural_indexer.h | ||
index cfdedf01..d7c58816 100644 | ||
--- a/src/generic/stage1/json_structural_indexer.h | ||
+++ b/src/generic/stage1/json_structural_indexer.h | ||
@@ -243,7 +243,6 @@ simdjson_inline void json_structural_indexer::next(const simd::simd8x64<uint8_t> | ||
#endif | ||
indexer.write(uint32_t(idx-64), prev_structurals); // Output *last* iteration's structurals to the parser | ||
prev_structurals = block.structural_start(); | ||
- unescaped_chars_error |= block.non_quote_inside_string(unescaped); | ||
} | ||
|
||
simdjson_inline error_code json_structural_indexer::finish(dom_parser_implementation &parser, size_t idx, size_t len, stage1_mode partial) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters