Skip to content

Commit 04e8710

Browse files
lemirejkeiser
authored andcommitted
Testing issue 570
1 parent e8b3f9e commit 04e8710

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/parse_many_test.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ bool validate(const char *dirname) {
101101
printf("size of file in bytes: %zu \n", json.size());
102102
everything_fine = false;
103103
}
104+
// issue 570, we just want to check for segfault
105+
simdjson::document::parser parser;
106+
for (const simdjson::document &doc : parser.load_many(fullpath)) {
107+
auto iter = simdjson::document::iterator(doc);
108+
//do something
109+
}
104110
free(fullpath);
105111
}
106112
}

0 commit comments

Comments
 (0)