From a0d2974f0a5f566215b01391421a19c4e184a5db Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Wed, 20 Jul 2022 08:46:06 +0200 Subject: [PATCH] test/cli_argument_parser: fix programmer-generated segfault --- src/test/cli_argument_parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/cli_argument_parser.cpp b/src/test/cli_argument_parser.cpp index 1c69fce..026330c 100644 --- a/src/test/cli_argument_parser.cpp +++ b/src/test/cli_argument_parser.cpp @@ -197,7 +197,7 @@ int main(int argc, char* argv[]) { std::vector unknownFlagTestPositionalArguments; - const char** unknownFlagTestParameterList = new const char*[3]; + const char** unknownFlagTestParameterList = new const char*[7]; unknownFlagTestParameterList[0] = "test"; unknownFlagTestParameterList[1] = "-a"; unknownFlagTestParameterList[2] = "-1"; @@ -242,7 +242,7 @@ int main(int argc, char* argv[]) { std::vector unknownArgumentTestPositionalArguments; - const char** unknownArgumentTestParameterList = new const char*[3]; + const char** unknownArgumentTestParameterList = new const char*[7]; unknownArgumentTestParameterList[0] = "test"; unknownArgumentTestParameterList[1] = "-a123"; unknownArgumentTestParameterList[2] = "-1a";