]> granicus.if.org Git - openssl/commit
Fix seg fault in s_time
authorMatt Caswell <matt@openssl.org>
Thu, 12 Mar 2015 16:42:55 +0000 (16:42 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 17 Mar 2015 13:49:32 +0000 (13:49 +0000)
commit6a43243d1d54a8bc4056eab76237e7d474edaafc
treec1046fb51a6427c69ba1c54ab372b388fd1eba30
parentf08731cd82566d14275b7749ca553bdd7f6267f3
Fix seg fault in s_time

Passing a negative value for the "-time" option to s_time results in a seg
fault. This commit fixes it so that time has to be greater than 0.

Reviewed-by: Andy Polyakov <appro@openssl.org>
(cherry picked from commit dfef52f6f277327e118fdd0fe34486852c2789b6)
apps/s_time.c