From: Dmitry Belyavskiy Date: Sat, 21 Sep 2019 13:37:32 +0000 (+0300) Subject: Fix OOB read. CID 253274 X-Git-Tag: v3.0.0~266 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=d77dbaa7d700d2b3d5b93d605ac047b04d062ad4;p=openssl-gost%2Fengine.git Fix OOB read. CID 253274 --- diff --git a/gost_ctl.c b/gost_ctl.c index 2dfb29a..64b76ad 100644 --- a/gost_ctl.c +++ b/gost_ctl.c @@ -76,7 +76,7 @@ const char *get_gost_engine_param(int param) int gost_set_default_param(int param, const char *value) { const char *tmp; - if (param < 0 || param > GOST_PARAM_MAX) + if (param < 0 || param >= GOST_PARAM_MAX) return 0; tmp = getenv(gost_envnames[param]);