From 610be9ac20dad2e0a5f76b027ab58b8bdf2a031c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 4 Mar 2020 12:07:58 +1100 Subject: [PATCH] Fix invalid memory access in unit-tests --- src/json.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json.cc b/src/json.cc index 82db4576..e50d3e61 100644 --- a/src/json.cc +++ b/src/json.cc @@ -178,7 +178,7 @@ UnitTest test_json_parser{[]() } { - String big_nested_array = {"", max_parsing_depth*2+2}; + String big_nested_array{' ', CharCount{max_parsing_depth*2+2}}; for (size_t i = 0; i < max_parsing_depth+1; i++) { big_nested_array[i] = '[';