cpu MD5: use smaller than (<) instead of != to make coverity happy

pull/1104/head
philsmd 7 years ago
parent 8b28940630
commit 1a0b1cd144
No known key found for this signature in database
GPG Key ID: 4F25D016D9D6A8AF

@ -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;
}

Loading…
Cancel
Save