diff options
author | Pauli <paul.dale@oracle.com> | 2020-06-24 20:21:15 +1000 |
---|---|---|
committer | Dr. Matthias St. Pierre <matthias.st.pierre@ncp-e.com> | 2020-06-24 21:54:52 +0200 |
commit | 5b286641efef67aed5af026302b2176e3e368ae9 (patch) | |
tree | baaadb9cd9dbd622cf9dc8847ab76d2a4d11cb32 | |
parent | 6926be0b163d760093216e25402abda790e197ac (diff) |
apps: avoid memory overrun.
NULL terminate the built in "help" argv array to avoid
reading beyond the end.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/12258)
-rw-r--r-- | apps/openssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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[]) { |