mirror of https://github.com/openssl/openssl
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:
parent
6926be0b16
commit
5b286641ef
|
@ -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[])
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue