From 184db3900e8ee1be49c65c05d87c27d0ddb5db50 Mon Sep 17 00:00:00 2001 From: Martin Ettl Date: Tue, 29 Oct 2013 01:48:30 +0100 Subject: [PATCH] testoptions: fixed buffer access out of bounds issue. The ctor of options requires an array of at least two elements, but. --- test/testoptions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testoptions.cpp b/test/testoptions.cpp index 35b76bdbd..3532f36ec 100644 --- a/test/testoptions.cpp +++ b/test/testoptions.cpp @@ -55,7 +55,7 @@ private: void no_test_method() const { - const char* argv[] = {"./test_runner"}; + const char* argv[] = {"./test_runner", ""}; options args(sizeof argv / sizeof argv[0], argv); ASSERT_EQUALS("", args.which_test()); }