From 5b286641efef67aed5af026302b2176e3e368ae9 Mon Sep 17 00:00:00 2001 From: Pauli Date: Wed, 24 Jun 2020 20:21:15 +1000 Subject: apps: avoid memory overrun. NULL terminate the built in "help" argv array to avoid reading beyond the end. Reviewed-by: Richard Levitte Reviewed-by: Dmitry Belyavskiy Reviewed-by: Matthias St. Pierre (Merged from https://github.com/openssl/openssl/pull/12258) --- apps/openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/openssl.c') diff --git a/apps/openssl.c b/apps/openssl.c index fdf4a746f8..3593c2b9f2 100644 --- a/apps/openssl.c +++ b/apps/openssl.c @@ -205,7 +205,7 @@ static void setup_trace(const char *str) } #endif /* OPENSSL_NO_TRACE */ -static char *help_argv[] = { "help" }; +static char *help_argv[] = { "help", NULL }; int main(int argc, char *argv[]) { -- cgit v1.2.3