mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-01 12:09:42 +00:00
modes: fix coverity 1449860: overlapping memory copy
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14584)
This commit is contained in:
parent
b875e0e820
commit
145f12d12d
@ -69,7 +69,8 @@ void CRYPTO_cbc128_encrypt(const unsigned char *in, unsigned char *out,
|
|||||||
in += 16;
|
in += 16;
|
||||||
out += 16;
|
out += 16;
|
||||||
}
|
}
|
||||||
memcpy(ivec, iv, 16);
|
if (ivec != iv)
|
||||||
|
memcpy(ivec, iv, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CRYPTO_cbc128_decrypt(const unsigned char *in, unsigned char *out,
|
void CRYPTO_cbc128_decrypt(const unsigned char *in, unsigned char *out,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user