From 1a0b1cd144edcd9ff9f6bf0df343ec9ab9807417 Mon Sep 17 00:00:00 2001 From: philsmd Date: Wed, 15 Feb 2017 12:11:18 +0100 Subject: [PATCH] cpu MD5: use smaller than (<) instead of != to make coverity happy --- src/cpu_md5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpu_md5.c b/src/cpu_md5.c index 4c4252339..33797a165 100644 --- a/src/cpu_md5.c +++ b/src/cpu_md5.c @@ -167,11 +167,11 @@ void md5_complete_no_limit (u32 digest[4], u32 *plain, u32 plain_len) * final block */ - // set 0x80 if neeeded + // set 0x80 if needed if (cur_len >= 0) { - if (cur_len != block_total_len) + if (copy_len < block_total_len) { block_ptr[copy_len] = (char) 0x80; }