From 5c51ebb8749025b3c8051651cd4191f2ebea688f Mon Sep 17 00:00:00 2001 From: Tanuj Garg Date: Mon, 1 Jun 2020 14:28:57 +0530 Subject: [PATCH] initialized json with empty array to test push_back & emplace_back methods --- test/src/fuzzer-parse_stl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/fuzzer-parse_stl.cpp b/test/src/fuzzer-parse_stl.cpp index ac2dbf2c8..6b4a48975 100644 --- a/test/src/fuzzer-parse_stl.cpp +++ b/test/src/fuzzer-parse_stl.cpp @@ -79,8 +79,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) // range-based iteration } - json j_vector2; - json j_vector3; + json j_vector2 = json::array(); + json j_vector3 = json::array(); for(int i = 0; i < (int)j_vector.size(); ++i) {