Attached updated patch according to openssl style.

---
Kurt Cancemi
https://www.x64architecture.com


On Thu, May 7, 2015 at 6:15 PM, Kurt Cancemi <[email protected]> wrote:
> Add missing terminating NULL to speed_options table. This would cause
> memory corruption by opt_init() because it relies on the terminating
> NULL.
>
> ---
> Kurt Cancemi

>From fe34ff5e8e780ce8928c138fe6bdf114d8b7109e Mon Sep 17 00:00:00 2001
From: Kurt Cancemi <[email protected]>
Date: Thu, 7 May 2015 18:19:20 -0400
Subject: [PATCH] Add missing terminating NULL to speed_options table. This
 would cause memory corruption in opt_init() because it relies on the
 terminating NULL.

---
 apps/speed.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/apps/speed.c b/apps/speed.c
index 9ab1648..4b3da87 100644
--- a/apps/speed.c
+++ b/apps/speed.c
@@ -374,6 +374,7 @@ OPTIONS speed_options[] = {
 #ifndef OPENSSL_NO_ENGINE
     {"engine", OPT_ENGINE, 's', "Use engine, possibly a hardware device"},
 #endif
+    {NULL},
 };
 
 #define D_MD2           0
-- 
2.4.0

_______________________________________________
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev

Reply via email to