We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f56bafc commit bfee058Copy full SHA for bfee058
cpp/src/arrow/json/chunker.cc
@@ -176,6 +176,11 @@ class ParsingBoundaryFinder : public BoundaryFinder {
176
break;
177
}
178
if (length == 0) {
179
+ // Check if remaining block contains invalid content (not starting with { or [)
180
+ const size_t start = ConsumeWhitespace(block);
181
+ if (start < block.size() && block[start] != '{' && block[start] != '[') {
182
+ return Status::Invalid("JSON parse error: Invalid value");
183
+ }
184
// found incomplete object or block is empty
185
186
0 commit comments