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)
This commit is contained in:
Pauli 2020-06-24 20:21:15 +10:00 committed by Dr. Matthias St. Pierre
parent 6926be0b16
commit 5b286641ef
1 changed files with 1 additions and 1 deletions

View File

@ -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[])
{