From 04e8710cf5543bd390cfb9f4fd2327e842edb6ac Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Fri, 20 Mar 2020 16:29:02 -0400 Subject: [PATCH] Testing issue 570 --- tests/parse_many_test.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/parse_many_test.cpp b/tests/parse_many_test.cpp index 80f239cc..79a57f35 100644 --- a/tests/parse_many_test.cpp +++ b/tests/parse_many_test.cpp @@ -101,6 +101,12 @@ bool validate(const char *dirname) { printf("size of file in bytes: %zu \n", json.size()); everything_fine = false; } + // issue 570, we just want to check for segfault + simdjson::document::parser parser; + for (const simdjson::document &doc : parser.load_many(fullpath)) { + auto iter = simdjson::document::iterator(doc); + //do something + } free(fullpath); } }