projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
enc: fix coverity 1451499, 1451501, 1451506, 1451507, 1351511, 1451514, 1451517,...
[openssl.git]
/
crypto
/
idea
/
i_cfb64.c
diff --git
a/crypto/idea/i_cfb64.c
b/crypto/idea/i_cfb64.c
index b9db1639cf363512356e9dbf9c875c40fd6584dc..a477799edf6acfd04f99afede6fccef29dd76a03 100644
(file)
--- a/
crypto/idea/i_cfb64.c
+++ b/
crypto/idea/i_cfb64.c
@@
-33,6
+33,11
@@
void IDEA_cfb64_encrypt(const unsigned char *in, unsigned char *out,
unsigned long ti[2];
unsigned char *iv, c, cc;
+ if (n < 0) {
+ *num = -1;
+ return;
+ }
+
iv = (unsigned char *)ivec;
if (encrypt) {
while (l--) {