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 2cbdcd038245df7c78b25a2c22f802d26e030684 Mon Sep 17 00:00:00 2001
From: Kurt Cancemi <k...@x64architecture.com>
Date: Thu, 7 May 2015 18:09:53 -0400
Subject: [PATCH] Add missing terminating NULL to speed_options table. This
 would cause memory corruption by 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..69e41af 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