From: Vitaly Chikunov Date: Thu, 30 Jan 2020 00:41:01 +0000 (+0300) Subject: gosthash2012: Remove unreachable code from `pad' X-Git-Tag: v3.0.0~223 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=6ca3db8d47a111dced8858b4e5bda8005bf1500c;p=openssl-gost%2Fengine.git gosthash2012: Remove unreachable code from `pad' `CTX->bufsize' cannot be 64 ever. --- diff --git a/gosthash2012.c b/gosthash2012.c index dce3e9b..e94273d 100644 --- a/gosthash2012.c +++ b/gosthash2012.c @@ -45,9 +45,6 @@ static INLINE void pad(gost2012_hash_ctx * CTX) { unsigned char buf[64]; - if (CTX->bufsize > 63) - return; - memset(&buf, 0x00, sizeof buf); memcpy(&buf, CTX->buffer, CTX->bufsize);