The branch master has been updated
via 5b286641efef67aed5af026302b2176e3e368ae9 (commit)
from 6926be0b163d760093216e25402abda790e197ac (commit)
- Log -----------------------------------------------------------------
commit 5b286641efef67aed5af026302b2176e3e368ae9
Author: Pauli <[email protected]>
Date: Wed Jun 24 20:21:15 2020 +1000
apps: avoid memory overrun.
NULL terminate the built in "help" argv array to avoid
reading beyond the end.
Reviewed-by: Richard Levitte <[email protected]>
Reviewed-by: Dmitry Belyavskiy <[email protected]>
Reviewed-by: Matthias St. Pierre <[email protected]>
(Merged from https://github.com/openssl/openssl/pull/12258)
-----------------------------------------------------------------------
Summary of changes:
apps/openssl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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[])
{